Web Service Utility (wsdl.exe)
wsdl.exe
helps create ASP.NET Web
Services and proxies for their clients. The most common usage of
wsdl.exe
is to generate proxy classes for web
services:
wsdl /command:proxy /path:path /language:language /namespace:namespace /out:output /protocol:protocol
The path
parameter is a local path to a
service-description file or URI where the SDL file can be retrieved.
The language
parameter specifies the
language for the output-proxy source file. It can be C#, VB, or JS.
The generated class will be in the specified namespace. The output
source file is controlled by the output
option. The protocol
controls which
protocol the proxy will use to communicate with the Web Service. The
choices of protocols provided by the .NET Framework are SOAP,
HttpGet, and HttpPost. You can also have your own protocol
here
if you’ve extended the ProtocolInfoImporter class.
For short names options, use the following.
wsdl /c:proxy /pa:path /l:language /n:namespace /o:output /protocol:protocol
Get .Net Framework Essentials now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.