This project is read-only.
Installation :
Add the dll reference to your project.

Loading wsdl :
SoapClient client = new SoapClient("");

Manually load and save wsdl
SoapClient client = new SoapClient();
client.LoadWSDL("", true);

First parameter is the wsdl url, second is to save or not wsdl definition to increase performance.

Setting soap header
client.Header = new SoapHeader();
client.Header.Name = "AuthHeader";
client.Header.Add("UserName", "test");
client.Header.Add("PassWord", "test");

Invoking operation

with parameters
client.Invoke("GetCityWeatherByZIP", "ZIP");

Last edited Apr 18, 2012 at 10:43 AM by Madagaga, version 1


santoshy Oct 20, 2015 at 8:10 AM 
I am using third party web service which is made in Java language and for calling I am using your SoapClient library but I am getting error "Index was out of range" in soapclient.cs at line no 184.

In our web service we are using digest authentication with username and password but no certification.

Can you please help me out