Index Changes

SOAP 1.2 echo composite APP


Steps

  • Create a bpel prjoect, this project will include a simple echo Service
    • step 1. create echo.wsdl
    • step 2. create echo.bpel

WSDL

  • create a wsdl with soap 1.2 binding, Note the binding section in this case

    • Note the Binding Section with soap1.2 , here the namespace is different from soap1.1 binding, where xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"

   <binding name="echoBinding" type="tns:echoPortType">
        <soap12:binding style="rpc" transport="http://www.w3.org/2003/05/soap/bindings/HTTP/"/>
        <operation name="echoOperation">
            <soap12:operation/>
            <input name="input1">
                <soap12:body use="literal" namespace="http://j2ee.netbeans.org/wsdl/EchoBP/echo"/>
            </input>
            <output name="output1">
                <soap12:body use="literal" namespace="http://j2ee.netbeans.org/wsdl/EchoBP/echo"/>
            </output>
        </operation>
    </binding>
    <service name="echoService">
        <port name="echoPort" binding="tns:echoBinding">
            <soap12:address location="http://localhost:${HttpDefaultPort}/echoService/echoPort"/>
        </port>
    </service>


BPEL

  • Create a bpel using the echo.wsdl
    • The BPEL process simply echo the request which is send
    • Assign: copy the request part to the response part


Composite APP

  • create a Composite APP, Add the bpel project using to the composite APP


Test

  • Test using soapUI, note once the composite app is deployed, the echo wsdl is available using the URL http://localhost:9080/echoService/echoPort" where the HttpDefaultPort value is 9080. The soap envelope for the request and response represent soap1.2 envelope

JSPWiki v2.4.100
[RSS]
« Home Index Changes Prefs
This page (revision-6) was last changed on 11-Sep-08 14:05 PM, -0700 by sujit