<?xml version="1.0" encoding="UTF-8"?>
<switchyard xmlns="urn:switchyard-config:switchyard:1.0" xmlns:bean="urn:switchyard-component-bean:config:1.0" xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912" xmlns:soap="urn:switchyard-component-soap:config:1.0" xmlns:transform="urn:switchyard-config:transform:1.0" name="orders" targetNamespace="urn:switchyard-quickstart:ear-order-service:0.1.0">
  <sca:composite name="orders" targetNamespace="urn:switchyard-quickstart:ear-order-service:0.1.0">
    <sca:service name="OrderService" promote="OrderService/OrderService">
      <sca:interface.wsdl interface="OrderService.wsdl#wsdl.porttype(OrderService)"/>
      <sca:binding.sca/>
    </sca:service>
    <sca:component name="InventoryService">
      <bean:implementation.bean class="org.switchyard.quickstarts.demo.multiapp.service.InventoryServiceBean"/>
      <sca:service name="InventoryService">
        <sca:interface.java interface="org.switchyard.quickstarts.demo.multiapp.InventoryService"/>
      </sca:service>
    </sca:component>
    <sca:component name="OrderService">
      <bean:implementation.bean class="org.switchyard.quickstarts.demo.multiapp.service.OrderServiceBean"/>
      <sca:service name="OrderService">
        <sca:interface.java interface="org.switchyard.quickstarts.demo.multiapp.OrderService"/>
      </sca:service>
      <sca:reference name="InventoryService">
        <sca:interface.java interface="org.switchyard.quickstarts.demo.multiapp.InventoryService"/>
      </sca:reference>
    </sca:component>
  </sca:composite>
  <transforms>
    <transform:transform.java from="java:org.switchyard.quickstarts.demo.multiapp.OrderAck" to="{urn:switchyard-quickstart-demo:multiapp:1.0}submitOrderResponse" class="org.switchyard.quickstarts.demo.multiapp.service.Transformers"/>
    <transform:transform.java from="{urn:switchyard-quickstart-demo:multiapp:1.0}submitOrder" to="java:org.switchyard.quickstarts.demo.multiapp.Order" class="org.switchyard.quickstarts.demo.multiapp.service.Transformers"/>
  </transforms>
  <artifacts>
    <artifact name="OrderService" url="http://localhost:8080/guvnorsoa/rest/packages/OrderService"/>
  </artifacts>
</switchyard>