R
RisingFish
Hello Everyone,
I've set up a Webservice, and am trying to use XmlHttpRequest to hit
the service. I keep getting an error stating that I need to specifiy a
SOAPAction, but I am not using a SOAP Message for the initial request.
The XmlHttpRequest object is working fine and I'm using the following
headers:
var url = "http://webserver.company.com/path/service.asmx/method1
var params = "Var1=" + Var1 + "&Var2=" + Var2 + "&Var3=" + Var3;
httpreq.open("POST", url, true);
httpreq.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded")
httpreq.setRequestHeader("Content-Length", params.length)
httpreq.onreadystatechange = handleHttpResponse;
httpreq.send(params);
I know that my company is using SOAP 1.1 and .Net 1.1 on the web
servers. I've set the Web Service up on my local box, and I can
sucessfully call the Web Service using XmlHttpRequest, but my box is
running .Net 2.0 on IIS.
Thanks!
I've set up a Webservice, and am trying to use XmlHttpRequest to hit
the service. I keep getting an error stating that I need to specifiy a
SOAPAction, but I am not using a SOAP Message for the initial request.
The XmlHttpRequest object is working fine and I'm using the following
headers:
var url = "http://webserver.company.com/path/service.asmx/method1
var params = "Var1=" + Var1 + "&Var2=" + Var2 + "&Var3=" + Var3;
httpreq.open("POST", url, true);
httpreq.setRequestHeader("Content-Type",
"application/x-www-form-urlencoded")
httpreq.setRequestHeader("Content-Length", params.length)
httpreq.onreadystatechange = handleHttpResponse;
httpreq.send(params);
I know that my company is using SOAP 1.1 and .Net 1.1 on the web
servers. I've set the Web Service up on my local box, and I can
sucessfully call the Web Service using XmlHttpRequest, but my box is
running .Net 2.0 on IIS.
Thanks!