How to use WSDL.exe in Asp.Net?

In this post, we will discuss how to generate the WSDL file using wsdl.exe. Also, you can check it out SharePoint Online: A Complete Ultimate Guide to learn SharePoint Online – FREE PDF Download and WCF tutorial and example in C#.Net.
WSDL (Web Services Description Language) is an XML-based language for describing Web services and how to access them.
This will generally create a proxy class.
The WSDL command line utility is presented in the below location. (For visual studio 2012)
C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools
The utility takes a different parameter, some examples given below:
wsdl http://URL/Service1.asmx?WSDL
Once you run the above command by default it will generate Service1.cs file in the below location.
C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools
You can also change the name of the Service1.cs file like below:
wsdl /out:myProxyClass.cs http://URL/Service1.asmx?WSDL
By default it will use C#.Net language.
You can also generate file in VB.Net like below:
wsdl /language:VB /out:myProxyClass.vb http://URL/Service1.asmx?WSDL
Check out Best Alternative to InfoPath -> Try Now

You May Also like the Following SharePoint Online Tutorials:

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site

View all posts by Bijay Kumar →