Labels

algorithms (22) Design Patterns (20) java (19) linux (14) Snippet (13) service mix (6) soa (4)

Invoke a webservice from linux shell

ENDPOINT="http://localhost:8001/soa-infra/services/default/App/StartApp"

curl --silent --data @- --header 'Content-Type: application/soap+xml; charset=utf-8' --user-agent "" ${ENDPOINT} <<EOF
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" xmlns:ns1="http://xmlns.oracle.com/Application/StartApp">
<soap12:Body>
<ns1:process>
<ns1:input>running</ns1:input>
</ns1:process>
</soap12:Body>
</soap12:Envelope>
EOF

ENDPOINT : this can be configured to point to ws endpoint


The envelope in weblogic can be got by clicking test on the web service and switching to xml view.


Curl is a command line tool to transfer data to a URL

Search 24 Bytes

Loading...