Thursday, May 30, 2013

Using a WSDL file in C#

Hi Readers

This Article is about using the WSDL file from a non .NET based service with C#.
Say that you got a WSDL file from Java based service and you want to access it using C# , You may think its hard but its really easy.
All you have to do is to use the WSDL utility.

Lets go Step By Step

Step 1 : Save your WSDL with the Extension .wsdl because .XML wont work
I'm using this file as the sample.

Step 2: Open the Visual Studio Command Prompt


Step3: Locate the WSDL file (Hello.wsdl) and Use the command WSDL Hello.wsdl

Now you have the CS file Hello_Service.cs

Step 4 : Insert the Hello_Service.cs in your project and
Create an object from the class and simply call the methods.
Happy Coding :)
-Guruparan-

No comments:

Post a Comment