"Allen St.Clair" <al************@msn.com> wrote in message
news:eE*************@TK2MSFTNGP12.phx.gbl...
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.)
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