cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: No SOAPAction Header

From: Lars Nilsson <chamaeleon_at_gmail.com>
Date: Tue, 15 Aug 2006 12:18:34 -0400

On 8/15/06, Robert Archer <cmsrarc1_at_hotmail.com> wrote:
> I've just started testing using cURL to do a client SOAP call to a web
> service and am having trouble composing the correct command line !!!!
>
> Working on windows XP talking to an Apache Axis server.
>
> The command line I've got is :-
>
> c:\curl-7.15.4\curl.exe -d "c:\test.xml" -H "Content-Type: text/xml" -u
> username:password http://webservice.com/service/
>
> But am getting the following error :-
>
> <soapenv:Body>
> <soapenv:Fault>
> <faultcode
> xmlns:ns1="http://xml.apache.org/axis/">ns1:Client.NoSOAPAction</faultcode>
> <faultstring>no SOAPAction header!</faultstring>
> <detail>
> <ns2:hostname
> xmlns:ns2="http://xml.apache.org/axis/">TCYTDS007</ns2:hostname>
> </detail>
> </soapenv:Fault>
> </soapenv:Body>
> </soapenv:Envelope>

Unless the server expects a particular action, try adding "-H
SOAPAction:" (without quotes) to your command.

Lars Nilsson
Received on 2006-08-15