all groups > dotnet web services > may 2005 >
You're in the

dotnet web services

group:

How Can VS IDE discover a Web Service (I need a professor)


How Can VS IDE discover a Web Service (I need a professor) Allen St.Clair
5/27/2005 12:00:00 AM
dotnet web services: Hello.

Now, I need to create SOAP package manually. But I dunno how to let VS IDE
get the descriptions of my Web Service.

For example, there is a Web Service (a.asmx) and some method in it. When I
"Add Web Reference" in VS IDE, what will be post to server and what should
be return. Give me a example. Thx~.

Re: How Can VS IDE discover a Web Service (I need a professor) Allen St.Clair
5/27/2005 12:00:00 AM
I've tried to use sniffer when "Add Web Reference". There are 3 HTTP-Get
(get the amx, get the disco, get the wdsl) but no response from IIS.

I still dunno how the IDE get the description of an asmx file (what methods
included and the type of each parameters, what structure and enum included
etc.)

Re: How Can VS IDE discover a Web Service (I need a professor) Sami Vaaraniemi
5/27/2005 12:00:00 AM

[quoted text, click to view]

The IDE loads the WSDL file which describes the methods (or messages, to be
exact), types and parameters of the Web Service. It probably uses the
ServiceDescriptionImporter class to generate code based on the WSDL. At
least this is how the command line wsdl.exe tool does it. The
ServiceDescriptionImporter class is public so you can use it too if you want
to e.g., create a Web Service proxy at run-time.

Regards,
Sami

AddThis Social Bookmark Button