How to add soap basic auth request to WSDL -


how can had soap auth basic auth wsdl, ever reads wsdl knows require operation specific method ?

using example bellow have managed pass soap basic autentication php webservice on other end. php.net/soapclient has simple working example, in csharp found link solution problem.

link

michaelis.mockservice webservice library extracted may see example on how in: link mono project website.

michaelis.mockservice service = new michaelis.mockservice();  // create network credentials , assign // them service credentials networkcredential netcredential = new networkcredential(“inigo.montoya”, “ykmfptd”); uri uri = new uri(service.url); icredentials credentials = netcredential.getcredential(uri, “basic”); service.credentials = credentials;  // sure set preauthenticate true or else // authentication not sent. service.preauthenticate = true;  // make web service call. service.method(); 

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -