Java Reference
In-Depth Information
<wsdl:service name="helloWorld">
<wsdl:port name="helloWorldSOAP11port_http"
binding="tns:helloWorldSOAP11Binding">
<soap:address location="http://localhost:8080/ode/processes/
helloWorld"/>
</wsdl:port>
<wsdl:port name="helloWorldSOAP12port_http"
binding="tns:helloWorldSOAP12Binding">
<soap12:address location="http://localhost:8080/ode/processes/
helloWorld"/>
</wsdl:port>
<wsdl:port name="helloWorldHttpport"
binding="tns:helloWorldHttpBinding">
<http:address location="http://localhost:8080/ode/processes/
helloWorld"/>
</wsdl:port>
</wsdl:service>
This design allows clients to choose either SOAP 1.1 or SOAP 1.2 for communicating with
the service.
So to invoke a client that will send a message to the process, run this command from the ODE
distribution's bindirectory:
$ sendsoap http://localhost:8080/ode/processes/helloWorld examples/
HelloWorld2/
testRequest.soap
The initial request may take a second, and then you'll see the log of the SOAP response if it's
successful:
$ bin/sendsoap http://localhost:8080/ode/processes/helloWorld examples/
Hello
World2/testRequest.soap
WARN - 2008-06-14 14:41:04,820 -
<org.apache.commons.httpclient.HttpMethodBase>
Going to buffer response body of large or unknown size. Using
getResponseBodyAsStream
instead is recommended.
<?xml version='1.0' encoding='UTF-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/
envelope/">
<soapenv:Body>
<axis2ns1:helloResponse xmlns:axis2ns1="http://ode/bpel/unit-test.wsdl">
<TestPart xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:ns1="http://ode/bpel/unit-test.wsdl">Hello World</TestPart>
Search WWH ::




Custom Search