Re: SOAPAction Woes
- From: "Gaurav Vaish \(EduJini.IN\)" <gaurav.vaish.nospam@xxxxxxxxxxxxxxxx>
- Date: Fri, 19 May 2006 23:15:05 +0530
It still will.
What WS-R says is that there should be an 'Action' element in Header part in
Message.
And the value of this Action element must be same as that of SOAPAction
provided in HTTP-Headers.
--
Happy Hacking,
Gaurav Vaish
http://www.mastergaurav.org
http://www.edujini.in
-------------------
"Zdenek Drlik" <drlik@xxxxxxxxxxxxxxx> wrote in message
news:enr3ul0eGHA.356@xxxxxxxxxxxxxxxxxxxxxxx
RisingFish napsal(a):
Hello Everyone,Hello,
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!
try setting RoutingStyle to SoapServiceRoutingStyle.RequestElement on your
web service (in SoapDocumentServiceAttribute - see
http://msdn2.microsoft.com/en-US/library/system.web.services.protocols.soapdocumentserviceattribute.aspx).
After applying this attribute WS should not require SOAPAction HTTP header
in your request.
Zdenek Drlik, MCAD
.
- Follow-Ups:
- Re: SOAPAction Woes
- From: Zdenek Drlik
- Re: SOAPAction Woes
- References:
- SOAPAction Woes
- From: RisingFish
- Re: SOAPAction Woes
- From: Zdenek Drlik
- SOAPAction Woes
- Prev by Date: Re: Consuming Web Service via WSDL Files
- Next by Date: Re: Consuming Web Service via WSDL Files
- Previous by thread: Re: SOAPAction Woes
- Next by thread: Re: SOAPAction Woes
- Index(es):
Relevant Pages
|