This quickstart demonstrates the usage of SOAP with WS-Addressing. It binds three SwitchYard services over SOAP/HTTP URL. There are two flows to this quickstart as illustrated below. When the client sends a WS-A request, a reply is immediately sent back to the client from the OrderService. The OrderService has now forwarded the request to WarehouseService with a ReplyTo address set as ClientService. Once the WarehouseService completes its processing the response is sent to ClientService. The client service then again writes the response to a file.
+-----------------+ +--------------+ +-------------+ +------------------+ | http:// | ---- | OrderService | ---- | camel:route | ---- | WarehouseService | +-----------------+ +--------------+ +-------------+ +------------------+ +------------------+ +---------------+ +-------------+ | WarehouseService | ---- | ClientService | ---- | camel:file | +------------------+ +---------------+ +-------------+
- Start JBoss AS 7 in standalone mode:
${AS}/bin/standalone.sh --server-config=standalone.xml
- If on Windows, please create a directory called 'tmp' under c:
- Build and deploy the quickstart
mvn install -Pdeploy
- Open a console window and type
mvn exec:java -Dexec.args="Boeing 10"
- You should see the following output <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> SOAP-ENV:Header urn:switchyard-quickstart:soap-addressing:1.0:OrderService:orderResponse uuid:3d3fcbbb-fd43-4118-b40e-62577894f39a </SOAP-ENV:Header> SOAP-ENV:Body Thank you for your order. You should hear back from our WarehouseService shortly! </SOAP-ENV:Body> </SOAP-ENV:Envelope>
- After a few seconds, this also should be displayed
Order Boeing with quantity 10 accepted.
-
Undeploy the quickstart:
mvn clean -Pdeploy