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
sweta14
Member
32 Points
112 Posts
Integrate Web service to a third party software
Jan 30, 2012 08:09 AM|LINK
I have created a simple webservice which take an application number as input and returns the status.
Can anyone give me some idea how to integrate with third party so that it will take the application number from IVR system.
Need some idea atleast..
thanks
ze.espogeira
Member
383 Points
101 Posts
Re: Integrate Web service to a third party software
Jan 30, 2012 02:45 PM|LINK
hi,
is the 3rd party software developed in .net?
if so, you need to create a service reference to the webservice, and then use the proxy class generated to call any webmethod.
Hope it helps!
sweta14
Member
32 Points
112 Posts
Re: Integrate Web service to a third party software
Jan 31, 2012 03:30 AM|LINK
No, the 3rd party is an IVR System...
I have already generated the proxy class but then how to implement that????
thanks
ze.espogeira
Member
383 Points
101 Posts
Re: Integrate Web service to a third party software
Jan 31, 2012 10:44 AM|LINK
Hi
think you must have to refer to the IVR System documentation on how to consume webservices :|
sweta14
Member
32 Points
112 Posts
Re: Integrate Web service to a third party software
Jan 31, 2012 10:49 AM|LINK
thanks for your reply.... one more thing...
can we create a SOAP Client to invoke WSDL file??
ze.espogeira
Member
383 Points
101 Posts
Re: Integrate Web service to a third party software
Jan 31, 2012 01:26 PM|LINK
Sure,
take a look at this i think it will help you.
sweta14
Member
32 Points
112 Posts
Re: Integrate Web service to a third party software
Feb 01, 2012 04:15 AM|LINK
all the links are for WCF but m doing web service....
just give me some idea that how a person can invoke the parameters to a wsdl file (which was generated by add web reference) ??
Thanks in advance
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