This quickstart demonstrates the usage of the XSLT transformer. The service contained in this quickstart is a dummy service (OrderService) which simply returns the order object so that it can be processed by the transformer. The object is then transformed from an Order object to an OrderAck object using XSLT.
This example is invoked through a SOAP gateway binding.
-
Start JBoss AS 7 in standalone mode:
${AS}/bin/standalone.sh -
Build and deploy the Quickstart :
mvn install -Pdeploy -
Submit a webservice request to invoke the SOAP gateway. There are a number of ways to do this :
- Submit a request with your preferred SOAP client - src/test/resources/xml contains sample requests and the responses that you should see
- Use the simple bundled SOAP client and the sample request XML e.g.
``` mvn exec:java ```
- SOAP-UI : Use the wsdl for this project (src/main/resources/wsdl/OrderService.wsdl) to create a soap-ui project. Use the sample request (src/test/resources/xml/soap-request.xml) as an example of a sample request. The output below is the expected output :
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP-ENV:Header/>
<SOAP-ENV:Body>
<orders:orderAck xmlns:orders="urn:switchyard-quickstart:transform-xslt:1.0">
<orderId>PO-19838-XYZ</orderId>
<accepted>true</accepted>
<status>Order Accepted</status>
</orders:orderAck>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>
-
Undeploy the quickstart:
mvn clean -Pdeploy
