How to do a SOAP wsdl web services call from the command line

It’s a standard, ordinary SOAP web service. SSH has nothing to do here. I just called it with (one-liner):

$ curl -X POST -H "Content-Type: text/xml" \
    -H 'SOAPAction: ""' \
    --data-binary @request.xml \

Where request.xml file has the following contents:

<soapenv:Envelope xmlns:soapenv="" xmlns:api="">

I get this beautiful 500:

<?xml version="1.0"?>
<s:Envelope xmlns:s="">
      <faultstring xml:lang="en-US">The username, password or application key is incorrect.</faultstring>

Have you tried ?

Read more

Leave a Comment