Skip to content

Files

Latest commit

feb6081 · Sep 24, 2014

History

History
This branch is 77 commits behind jboss-switchyard/quickstarts:master.

soap-addressing

Introduction

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  |
+------------------+      +---------------+      +-------------+

SOAP with WS-Addressing

Running the quickstart

JBoss AS 7

  1. Start JBoss AS 7 in standalone mode:
    ${AS}/bin/standalone.sh --server-config=standalone.xml
  1. If on Windows, please create a directory called 'tmp' under c:
  2. Build and deploy the quickstart
    mvn install -Pdeploy
  1. Open a console window and type
    mvn exec:java -Dexec.args="Boeing 10"
  1. 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>
  2. After a few seconds, this also should be displayed

Order Boeing with quantity 10 accepted.

  1. Undeploy the quickstart:

     mvn clean -Pdeploy
    

Further Reading

  1. SOAP Binding Documentation
  2. [WS-Addressing] http://www.w3.org/standards/techs/wsaddr#w3c_all