Example 5.5, “Simple Router Configuration” shows a simple router configuration file.
Example 5.5. Simple Router Configuration
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mule-configuration PUBLIC "-//SymphonySoft //DTD mule-configuration XML V1.0//EN"
"http://www.symphonysoft.com/dtds/mule/mule-configuration.dtd">
<mule-configuration id="RouterConfig" version="1.0">
<description>Fragment of a router configuration file.</description>
<mule-environment-properties clientMode="true" />
<transformers>
<transformer name="InputStreamToString"
className="com.iona.cxf.router.mule.transformers.InputStreamToString" />
<transformer name="StringToInputStream"
className="com.iona.cxf.router.mule.transformers.StringToInputStream" />
</transformers>
<model name="Sample">
<mule-descriptor name="HTTP-to-JMS"
implementation="org.mule.components.simple.PassThroughComponent">
<inbound-router>
<endpoint address="wsdl-cxf:res:///wsdl/hello_world.wsdl"
synchronous="true"
transformers="InputStreamToString">
<properties>
<property name="service"
value="{http://apache.org/hello_world}SOAPService" />
<property name="port"
value="{http://apache.org/hello_world_soap_http}SoapOverHTTP" />
<property name="dataFormat" value="message" />
</properties>
</endpoint>
</inbound-router>
<outbound-router>
<router className="org.mule.routing.outbound.OutboundPassThroughRouter">
<endpoint address="wsdl-cxf:res:///wsdl/hello_world.wsdl"
synchronous="true"
transformers="StringToInputStream">
<properties>
<property name="service"
value="{http://apache.org/hello_world}SOAPService" />
<property name="port"
value="{http://apage.org/hello_world}SOAPOverJMS" />
<property name="dataFormat" value="message" />
</properties>
</endpoint>
</router>
</outbound-router>
</mule-descriptor>
</model>
</mule-configuration>
The configuration sample shown in Example 5.5, “Simple Router Configuration” can be explained as follows: