heimi

SOAP call by Shellscript using curl

Mar 6th, 2013
1,100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.36 KB | None | 0 0
  1. curl --header "Content-Type: text/xml;charset=UTF-8" \
  2.  --header "SOAPAction:action" --data @- \
  3.  --request POST http://host:port/urlo << EOF
  4. <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:pre="...">
  5.    <soapenv:Header/>
  6.    <soapenv:Body>
  7.       <pre:userName>dummy</pre:userName>
  8.    </soapenv:Body>
  9. </soapenv:Envelope>
  10. EOF
Advertisement
Add Comment
Please, Sign In to add comment