If you have a WSDL file of web service, then you can add web reference to reference that web service or use WSDL.exe to generate proxy class and then import this class into your caller project. then you can use the following code to call your web service (assuming
you are using Visual Studio development tool)
using(Service1.Service1 client = new Service1.Service1())
{
//The first Service1 is web reference name and the second Service1 is the web service name
Peter pi - M...
Star
12871 Points
1786 Posts
Re: Integrate Web service to a third party software
Feb 03, 2012 03:01 AM|LINK
Hi,
If you have a WSDL file of web service, then you can add web reference to reference that web service or use WSDL.exe to generate proxy class and then import this class into your caller project. then you can use the following code to call your web service (assuming you are using Visual Studio development tool)
using(Service1.Service1 client = new Service1.Service1())
{
//The first Service1 is web reference name and the second Service1 is the web service name
client.yourwebmethod();
}
Regards,
Peter
If you have any feedback about my replies, please contact msdnmg@microsoft.com
Microsoft One Code Framework