Hi All,
I have just converted a few projects (Web Application, Web Service) to .Net 2005. The web application calls the web service using javascript from the client side.
I am getting Error 401 - Unauthorized Access. I understand how to get around this error on the server side (i.e. PreAuthenticate and set credentials to default credentials), but can't seem to get it working client-side.
Unfortunately, I cannot move this code to the server side - my dev manager wants it where it is.
Here is the javascript call:
PBService.useService("http://MyServer/PBWebservice/PBWebservice.asmx?WSDL","retVal");
PBService.retVal.callService(ParseXML, "MyFunction", document.getElementById("cnn").value, ID);
where cnn and ID are being passed to the web service as parameters.
Thanks for your help,
Rachel