Mar 20, 2008

Proxy class generation from WSDL in .NET 2.0 and .NET3.0

Proxy class generation from WSDL in .NET 2.0

The following command creates a .wsdl file for the XML Web service located at the specified URL and creates a client proxy class in the C# language for the XML Web service.

wsdl http://hostServer/WebserviceRoot/WebServiceName.asmx?WSDL

The following command creates a client proxy class in the C# language for an XML Web service located at the specified URL. The tool saves the client proxy class in the file myProxyClass.cs

wsdl /out:myProxyClass.cs http://hostServer/WebserviceRoot/WebServiceName.asmx?WSDL

For more visit to:

http://msdn2.microsoft.com/en-us/library/7h3ystb6(VS.71).aspx

Proxy class generation from WSDL in .NET 3.0

Use this command to generate proxy class from a web service.

WseWsdl3 http://hostServer/WebServiceRoot/WebServiceName.asmx?WSDL /out:MyProxyClass.cs

This will generate the class MyProxyClass.cs which we can include in our solution to create an object of this and then call the appropriate method.

For more visit to :

http://msdn2.microsoft.com/en-us/library/aa529578.aspx

4 comments:

  1. Hello,

    thanks for your post. But i need more help. I have a wsdl file only. Now i have to generate a proxy class from it. Can you tell me how and where i have to do exactly? the link you specify where is have to use it?

    thanks
    Sami

    ReplyDelete
  2. @samin - you need to open the visual studio command prompt to run it.
    Thanks for pointing it.

    ReplyDelete
  3. Thanks. This did the trick for me. I just put the wsdl on my own iis and pointed to it from there. I navigated my visual studio command prompt to the location where I wanted the .cs file.

    ReplyDelete
  4. I want to share one of the very informative trick which can access any block site at your office , school or even in university without having administrative rights. Just click
    KickAssTorrents UK proxy

    ReplyDelete

SQL - Difference between CAST,CONVERT and PARSE

TODO---