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.
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
Post a Comment