Last active
December 25, 2015 19:59
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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