<?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="DotNet_Rest_Test" version="1.0">
<mule-environment-properties synchronous="true"/>

    <connector name="SystemStreamConnector" className="org.mule.providers.stream.SystemStreamConnector">
        <properties>
            <property name="promptMessage" value="Please enter a stock symbol: "/>
            <property name="messageDelayTime" value="1000"/>
        </properties>
    </connector>

    <transformers>
        <transformer name="XmlToObject" className="org.mule.transformers.xml.XmlToObject"/>
        <transformer name="SgmlDecoder" className="org.mule.transformers.codec.SgmlEntityDecoder"/>
        <transformer name="Xslt" className="org.mule.transformers.xml.XsltTransformer">
            <properties>
                <property name="xslFile" value="stock.xsl"/>
            </properties>
        </transformer>
    </transformers>
    <!--
        The Mule model initialises and manages your UMO components
    -->
    <model name="httpSample">
        <!--
            A Mule descriptor defines all the necessary information about
how your components will
            interact with the framework, other components in the system and
external sources.
            Please refer to the Configuration Guide for a full description
of all the parameters.
        -->
<mule-descriptor name="HTTPPostSample"
    implementation="org.mule.components.rest.RestServiceWrapper">
    <inbound-router>
        <endpoint address="stream://System.in"/>
    </inbound-router>
    <outbound-router>
        <router className="org.mule.routing.outbound.FilteringOutboundRouter">
            <endpoint address="stream://System.out" transformers="SgmlDecoder Xslt XmlToObject"/>
        </router>
    </outbound-router>
    <properties>
        <property name="serviceUrl" value="http://www.webservicex.net/stockquote.asmx/GetQuote"/>
        <property name="payloadParameterName" value="symbol"/>
        <property name="httpMethod" value="POST"/>
    </properties>
</mule-descriptor>

    </model>
</mule-configuration>