“Access is Denied” error when accessing ASP.NET SOAP web service from SoapClient.js !!!

Topics: Developer Forum, User Forum
May 10, 2011 at 8:32 AM

Hi, I have added a .asmx file to my project and am deploying the ASP.NET website with the .asmx file to:

http://xx.xxx.xx.xxx:8888/WebTest/

I am using SoapClient.js to get the data (it is available from: http://javascriptsoapclient.codeplex.com/) Now when on a page in the website, (in the same project), I try to access the webservice, I get the error: "Access is Denied" from the line of code in SoapClient.js which retreives the WSDL file

http://xx.xxx.xx.xxx:8888/WebTest/SampleWebService.asmx?wsdl

Now from what i read and understand, it could be due to XSS, but I added my "localhost" (for testing) as well as the web location to my Trusted Sites in IE.

Also, in my SoapWebservice the namespace is set to http://xx.xxx.xx.xxx:8888/.

Please help me as to how can I resolve the error??

Also, when I hit the following URL in my browser, I can see the WSDL of my service!! http://xx.xxx.xx.xxx:8888/WebTest/SampleWebService.asmx?wsdl