February 20, 2009

Testing a SOAP Webservice with curl from a Shell

Assuming you have a valid soap message stored in the file “soap-msg.xml,” you can easily test its execution via curl straight from the shell:

msg=`cat soap-msg.xml`curl -H “Content-Type: text/xml;charset=UTF-8” -d “$msg”http://foo.com/webservice

Inelegant it is, but it can give you a quick human look into the message result if something is going awry.

blog comments powered by Disqus
2:18pm  |   permalink
FILED UNDER: programming shell