I need to consume Soap web service in my C# application using SoapClient,
Kindly suggest me how do I pass all these parameters in my App.
I not clear about the "SoapClient", Could you describe it in detailed?
As I understand you want to call your web service from C# client application. You already have the service and published WSDL file.
Generate proxy classes in the C# application (this process is called adding a service reference) or use the HttpWebRequest are the suitable way to consume Soap web service.
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
Thanks for your support, here below sample example for what I want to do.
My question is how could I pass parameters like below
What's the type of your Soap web service? Could you show us the code that you have done it before.
As I suggested above. In C# application, we can generate proxy classes or use the HttpWebRequest to consume Soap web service.
Include all necessary code snippets and a detailed description about the results including any exception messages will help us quickly analyze your problem.
Best Regards,
Yong Lu
.NET forums are moving to a new home on Microsoft Q&A, we encourage you to go to Microsoft Q&A for .NET for posting new questions and get involved today.
None
0 Points
3 Posts
Consume Web service using SoapClient
Sep 09, 2018 10:43 AM|kmohamed|LINK
Hi All,
I need to consume Soap web service in my C# application using SoapClient,
Kindly suggest me how do I pass all these parameters in my App.
Thanks
Star
11454 Points
2439 Posts
Re: Consume Web service using SoapClient
Sep 10, 2018 07:45 AM|Yohann Lu|LINK
Hi kmohamed,
I not clear about the "SoapClient", Could you describe it in detailed?
As I understand you want to call your web service from C# client application. You already have the service and published WSDL file.
Generate proxy classes in the C# application (this process is called adding a service reference) or use the HttpWebRequest are the suitable way to consume Soap web service.
The following links for your reference.
Call (Consume) Web Service (ASMX) in ASP.Net web application using C# and VB.Net
https://www.aspsnippets.com/Articles/Call-Consume-Web-Service-ASMX-in-ASPNet-web-application-using-C-and-VBNet.aspx
Calling Web Service Using SOAP Request In Console Application
https://www.c-sharpcorner.com/article/calling-web-service-using-soap-request/
Best Regards,
Yong Lu
None
0 Points
3 Posts
Re: Consume Web service using SoapClient
Sep 10, 2018 03:07 PM|kmohamed|LINK
Hi
Thanks for your support, here below sample example for what I want to do.
My question is how could I pass parameters like below
Star
11454 Points
2439 Posts
Re: Consume Web service using SoapClient
Sep 11, 2018 05:41 AM|Yohann Lu|LINK
Hi kmohamed,
What's the type of your Soap web service? Could you show us the code that you have done it before.
As I suggested above. In C# application, we can generate proxy classes or use the HttpWebRequest to consume Soap web service.
Include all necessary code snippets and a detailed description about the results including any exception messages will help us quickly analyze your problem.
Best Regards,
Yong Lu