Hi, I'd like to invoke remote service using WSRequest in WSDL mode, but the service requires HTTP Basic authentication.
Unfortunately, following code
var request = new WSRequest(); var options = new Array(); options["username"] ="myname"; options["password"] ="mypass"; request.openWSDL("http://url.to/the/service/wsdl",false, options); request.send("operation",null); return request.responseXML;
results in
Fault: Transport error: 401 Error: Authorization Required
Documentation of "openWSDL" mentions, that username and password options are related to WS-Security (that is not used in this scenario). Probably, "open" function is able to use HTTP Basic authentication, but it lacks the benefits of using WSDL!
Is there any solution to invoke such service in WSDL mode? (I think, HTTP Basic auth is still widely used in many environments)
Can you try
If I remember correct for
Is there a way to correct the WSDL?
This issiu seems to be very