Skip to content

Instantly share code, notes, and snippets.

@sandeepkunkunuru
Last active December 25, 2015 19:59
Show Gist options
  • Save sandeepkunkunuru/7031182 to your computer and use it in GitHub Desktop.
Save sandeepkunkunuru/7031182 to your computer and use it in GitHub Desktop.
Invoking Webservice from command line . Here SOAP request is to be specified in a file named request.xml
<soapenv:Envelope
xmlns:q0="https://.../"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
</soapenv:Header>
<soapenv:Body>
<q0:clientLogin>
<q0:username>...</q0:username>
<q0:password>...</q0:password>
</q0:clientLogin>
</soapenv:Body>
</soapenv:Envelope>
curl -X POST -H "Content-Type: text/xml;charset=UTF-8" -H "SOAPAction: \"https://.../clientLogin\"" -d @request.xml https://.../service.asmx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment