Thursday, 5 December 2013

Check if port is listening from Linux command line

 netstat -an | grep 8018 | grep LISTEN


The response will be either bla bla bla LISTEN or nothing at all if we are not listening on the port.

How to get a salesforce session ID.

  1. Login to SF using the credentials you have.
  2. in another tab open https://workbench.developerforce.com
  3. In the Environment: drop-down choose Sandbox.
  4. Hit the "Login with Salesforce" button.
  5. Go to Info->Session Information.
  6. Go to Connection-> Session Id:
     ..........
     PROFIT

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.