Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > Creating Web service from the interface (WSDL)

Reply
Thread Tools

Creating Web service from the interface (WSDL)

 
 
James Bradley
Guest
Posts: n/a
 
      10-06-2003
Hello all,

I am new to .NET and web services so any guidance is appreciated!

I have created a (C#) web service the .NET way, creating the code
first and having .NET auto generate the WSDL. This was pretty
straightforward, and after adding a few atrributes to clean up the
SOAP requests and responses, I have a nice interface.

Now, what I want to do is lock down the interface (WSDL) and code to
that, not the other way around. So, I grabbed a copy of the WSDL and
started a new solution.

I have two projects, one a simple project that builds the abstract
class for the webservice (WSDL /Server), and the other which includes
the .CS from that. I then derive from this base class and implement
my service. I have copied all of the attributes and prototypes
straight from the base class. I have changed the namespace/class
structure to more accurately represent the final resting place for
this service.

Now, when I add a test project and attempt to add a Web Reference to
my service, it fails. I select my .WSDL through localhost, and the
response is "The specified module could not be found". I have no idea
what the real problem is here, but the IIS log is showing two entries,
401 then 500 for the WSDL. I'm not sure what authorization problem I
am having to access the WSDL, and I don't know how to find any details
beyond this message.

Do I still need an ASMX page, or is this irrelevant now that I am
working from the WSDL?

Does anyone know of some tutorials on doing this kind of thing? All I
can find are articles based on code --> interface for .NET, now the
other way around.

I really hope that I can do this, because I want to have my interface
locked down and I will soon need to deal with nillable value types

Thanks for any help you can give!

Jami

 
Reply With Quote
 
 
 
 
richlm
Guest
Posts: n/a
 
      10-11-2003
Hi James

First I think you are taking an excellent approach! One
of the best ways to fully understand web services is to
start with the WSDL, and you are sort of going that route.

I think the article:
"Place XML Message Design Ahead of Schema Planning to
Improve Web Service Interoperability" from MSDN magazine
might help - link at
http://msdn.microsoft.com/msdnmag/is...12/webservices
design/default.aspx

Please let us know if it helps.

Richard.

>-----Original Message-----
>Hello all,
>
>I am new to .NET and web services so any guidance is

appreciated!
>
>I have created a (C#) web service the .NET way, creating

the code
>first and having .NET auto generate the WSDL. This was

pretty
>straightforward, and after adding a few atrributes to

clean up the
>SOAP requests and responses, I have a nice interface.
>
>Now, what I want to do is lock down the interface (WSDL)

and code to
>that, not the other way around. So, I grabbed a copy of

the WSDL and
>started a new solution.
>
>I have two projects, one a simple project that builds

the abstract
>class for the webservice (WSDL /Server), and the other

which includes
>the .CS from that. I then derive from this base class

and implement
>my service. I have copied all of the attributes and

prototypes
>straight from the base class. I have changed the

namespace/class
>structure to more accurately represent the final resting

place for
>this service.
>
>Now, when I add a test project and attempt to add a Web

Reference to
>my service, it fails. I select my .WSDL through

localhost, and the
>response is "The specified module could not be found".

I have no idea
>what the real problem is here, but the IIS log is

showing two entries,
>401 then 500 for the WSDL. I'm not sure what

authorization problem I
>am having to access the WSDL, and I don't know how to

find any details
>beyond this message.
>
>Do I still need an ASMX page, or is this irrelevant now

that I am
>working from the WSDL?
>
>Does anyone know of some tutorials on doing this kind of

thing? All I
>can find are articles based on code --> interface

for .NET, now the
>other way around.
>
>I really hope that I can do this, because I want to have

my interface
>locked down and I will soon need to deal with nillable

value types
>
>Thanks for any help you can give!
>
>Jami
>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Win32 Service: Access Denied when creating service Rajiv Abraham Ruby 3 04-16-2010 10:34 AM
Does timer in Web Service Global.asax block my Web Service from processing web-site requests? Leo Violette ASP .Net Web Services 0 04-17-2009 12:39 AM
Creating a Web Service (Service, not Client) from WSDL Bert Leu ASP .Net 1 11-23-2007 08:29 PM
Creating a Web Service (Service, not Client) from WSDL Bert Leu ASP .Net Web Services 1 11-23-2007 07:59 PM
InvocationTargetException when calling "new Service()" in Axis web service to call another web service Michael Averstegge Java 0 01-10-2006 11:05 PM



Advertisments