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

4 comments:

  1. This comment has been removed by a blog administrator.

    ReplyDelete
  2. This comment has been removed by a blog administrator.

    ReplyDelete
  3. I like the post format as you create user engagement in the complete article. It seems round up of all published posts. Thanks for gauging the informative posts.
    cara menggugurkan kandungan
    cara untuk menggugurkan bayi

    ReplyDelete

Search 24 Bytes