Thursday, 5 December 2013

Send the soap request to a web service from Linux command line.

wget --post-file=spainsf.xml --header="Content-Type: text/xml; charset=utf-8" --header="SOAPAction: \"http://tempuri.org/IMigrateAccounts/BroadCastChanges\"" https://salesforce.com/services/Soap/class/ServiceName -O ./response.xml

where
spainsf.xml file that contains the soap request.
https://salesforce.com/services/Soap/class/ServiceName the service endpoint.
response.xml the file where the responce is written.

No comments:

Post a Comment