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

Invoke a webservice from linux shell


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="" xmlns:xsd="" xmlns:soap12="" xmlns:ns1="">

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