I am new to Mule. I am trying to call
http://www.webservicex.net/globalweather.asmx/GetCitiesByCountry?method=GetCitiesByCountry. I want Mule to read cityrequest.xml, create a request using WSDL and send it to the web service. This is my configuration file, request is being sent to the web service but response is empty. Please help.
<file:connector name="inputFileConnector" autoDelete="false" streaming="true"/>
<file:file-to-string-transformer name="FileToString"/>
<file:connector name="outputFileConnector" autoDelete="true" streaming="false"/>
<xm:object-to-xml-transformer name="ObjectToXML"/>
<model name="weatherModel">
<!-- Get Cities-->
<service name="GetCitiesByCountry">
<inbound>
<file:inbound-endpoint path="c:/Mule/examples/weather/input" connector-ref="inputFileConnector">
<file:filename-wildcard-filter pattern="cityrequest.xml"/>
<transformer ref="FileToString"/>
<transformer ref="ObjectToXML"/>
</file:inbound-endpoint>
</inbound>
<outbound>
<chaining-router>
<outbound-endpoint address="wsdl-cxf:
http://www.webservicex.net/globalweather.asmx/GetCitiesByCountry?method=GetCitiesByCountry">
<!-- We might not need this explicit WSDL path-->
<properties>
<spring:entry key="wsdlLocation" value="file:///c:/Mule/examples/weather/weather.wsdl"/>
</properties>
</outbound-endpoint>
<file:outbound-endpoint path="c:/Mule/examples/weather/output" connector-ref="outputFileConnector"/>
</chaining-router>
</outbound>
</service>
</model>