Thursday, June 9, 2011

The SOAP action specified on the message, '', does not match the HTTP SOAP Action

post helped me a lot:

in my WSDL I was using

    wsdl:binding name="MyServiceBinding" type="tns:IMyService"
        soap:binding style="document"

which meant that not only I must specify the HTTP header SOAPAction: ""

but I need to specify also in the SOAP Envelope the header:

<soap:Header xmlns:soap="" xmlns:wsa="">

(make sure you pick up the right wsa namespace, there are many flavors around)

No comments: