<?xml version="1.0" encoding="UTF-8"?><switchyard xmlns="urn:switchyard-config:switchyard:1.0">
    <composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912" name="OrderService" targetNamespace="urn:switchyard-quickstart:resteasy-binding:1.0">
        <sca:service xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912" name="OrderService" promote="OrderService/OrderService">
            <rest:binding.rest xmlns:rest="urn:switchyard-component-resteasy:config:1.0">
                <rest:interfaces>org.switchyard.quickstarts.rest.binding.OrderResource,org.switchyard.quickstarts.rest.binding.TestResource</rest:interfaces>
                <rest:contextPath>rest-binding</rest:contextPath>
            </rest:binding.rest>
        </sca:service>
        <sca:service xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912" name="WarehouseService" promote="WarehouseService/WarehouseService">
            <rest:binding.rest xmlns:rest="urn:switchyard-component-resteasy:config:1.0">
                <rest:messageComposer class="org.switchyard.quickstarts.rest.binding.CustomComposer"/>
                <rest:interfaces>org.switchyard.quickstarts.rest.binding.WarehouseResource</rest:interfaces>
                <rest:contextPath>rest-binding</rest:contextPath>
            </rest:binding.rest>
        </sca:service>
        <sca:reference xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200912" multiplicity="1..1" name="Warehouse" promote="OrderService/Warehouse">
            <rest:binding.rest xmlns:rest="urn:switchyard-component-resteasy:config:1.0">
                <rest:messageComposer class="org.switchyard.quickstarts.rest.binding.CustomComposer"/>
                <rest:interfaces>org.switchyard.quickstarts.rest.binding.WarehouseResource</rest:interfaces>
                <rest:address>http://localhost:${restPort}${restPath}</rest:address>
            </rest:binding.rest>
        </sca:reference>
        <component name="OrderService">
            <implementation.bean xmlns="urn:switchyard-component-bean:config:1.0" class="org.switchyard.quickstarts.rest.binding.OrderServiceImpl"/>
            <service name="OrderService">
                <interface.java interface="org.switchyard.quickstarts.rest.binding.OrderService"/>
            </service>
            <reference name="Warehouse">
                <interface.java interface="org.switchyard.quickstarts.rest.binding.Warehouse"/>
            </reference>
        </component>
        <component name="WarehouseService">
            <implementation.bean xmlns="urn:switchyard-component-bean:config:1.0" class="org.switchyard.quickstarts.rest.binding.WarehouseServiceImpl"/>
            <service name="WarehouseService">
                <interface.java interface="org.switchyard.quickstarts.rest.binding.WarehouseService"/>
            </service>
        </component>
    </composite>
    <domain>
        <properties>
            <property name="restPort" value="${org.switchyard.component.resteasy.standalone.port:8080}"/>
            <property name="restPath" value="${org.switchyard.component.resteasy.standalone.path:/rest-binding}"/>
        </properties>
    </domain>
</switchyard>
