0

I am new to SOAP complex type web services. I attached down here the wsdl file. My question is how to consume the web service? I mean how to call and how to call the callback function.

if possible, use the below wsdl and give me an example with c# wsdl here [wsdl here][1]

https://drive.google.com/open?id=1cEM0h3AO6tj1aDv6Z2BGfZUxEiQe9c9O

curveball
  • 4,320
  • 15
  • 39
  • 49

1 Answers1

0

The easiest way I know to consume a SOAP API is to create a C# project and add a service reference.

enter image description here

Then add the address of your website and Visual Studio will generate a proxy for your WebService.

enter image description here

You will be able to call it in your project (Website/ConsoleApp).

You can have a sample of how to call the client when you call the svc of your WebSite if you use WCF.

ex: http://<host>[/route]/<name of svc>.svc

TheSoftwareJedi
  • 34,421
  • 21
  • 109
  • 151
Zysce
  • 1,200
  • 1
  • 10
  • 35
  • thanks for reply but i need to know how to serialize the complex object and pass it to the web service either in client or server side – Bashir Salih Aug 22 '18 at 16:01
  • With a proxy, just instantiate the object and pass it to the method. On client side, with ajax, you need to create the xml and post it as the payload. – Zysce Aug 22 '18 at 16:09