Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Curl command line for consuming webServices?

Do you guys know how I can use the Curl command line to POST SOAP to test a web service?

I have a file (soap.xml) which has all the soap message attached to it I just don't seem to be able to properly post it.

Thanks!

like image 551
el_eduardo Avatar asked Sep 17 '08 14:09

el_eduardo


1 Answers

Posting a string:

curl -d "String to post" "http://www.example.com/target" 

Posting the contents of a file:

curl -d @soap.xml "http://www.example.com/target" 
like image 51
lbz Avatar answered Oct 02 '22 14:10

lbz