Re: SOAPAction Woes
- From: Zdenek Drlik <drlik@xxxxxxxxxxxxxxx>
- Date: Tue, 23 May 2006 12:17:43 +0200
Gaurav Vaish (EduJini.IN) napsal(a):
Yes, you are clear, but I think that you are not true... :-)should be possible to set .NET web service to not require SOAPAction.
It works fine for me, so what do you mean by "it still will"?
Surprisingly... because the documentation reads that "SOAPAction must be set to empty string" implies that a header:
SOAPAction: ""
must be sent. The same is provided in the sample as well.
If it does not expect SOAPAction header (HTTP Header), it is acting against the specifications.
IIRC, not provided SOAPAction in custom requests has always generated an error for me..
.. and hence my statement "It still will" -- meaning that ASMX requires a SOAPAction HTTP header. The value may be empty... that's a different story. But the header must still be present in the request.
I hope I am clear this time :)
Document which link I posted yesterday (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnwebsrv/html/howwebmeth.asp) contains this text:
If you'd rather not rely on the SOAPAction header for method dispatching, you can instruct the .asmx handler to use the request element's name by annotating the class with the [SoapDocumentService] attribute's RoutingStyle property. If you do this, you should probably also indicate that the WebMethods don't require a SOAPAction value by setting their values to the empty string.
....
In this case, the handler doesn't even look at the SOAPAction value---it uses the name of the request element instead.
So how could be SOAPAction required when the handler doesn't even look for it for method dispatching?
Zdenek Drlik, MCAD
.
- Follow-Ups:
- Re: SOAPAction Woes
- From: Gaurav Vaish \(EduJini.IN\)
- Re: SOAPAction Woes
- References:
- SOAPAction Woes
- From: RisingFish
- Re: SOAPAction Woes
- From: Zdenek Drlik
- Re: SOAPAction Woes
- From: Gaurav Vaish \(EduJini.IN\)
- Re: SOAPAction Woes
- From: Zdenek Drlik
- Re: SOAPAction Woes
- From: Gaurav Vaish \(EduJini.IN\)
- SOAPAction Woes
- Prev by Date: Re: SOAPAction Woes
- Next by Date: Re: Calling Web Service Created with .NET with PHP - Security
- Previous by thread: Re: SOAPAction Woes
- Next by thread: Re: SOAPAction Woes
- Index(es):
Relevant Pages
|