Calling external web service

View: New views
5 Messages — Rating Filter:   Alert me  

Calling external web service

by duachirag :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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>

RE: Calling external web service

by antoine.borg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
 
Looks like the config file URL you used is invalid.
 
If your response is empty, it sounds like you may have a problem with the WS invocation. Are you passing the correct info to it?
 
A
 
Antoine Borg, Senior Consultant | Tel: +32 28 504 696 
ricston Ltd., BP 2, 1180 Uccle, Brussels, BELGIUM
email: antoine.borgantoine.borg@... | blog: blog.ricston.com | web: ricston.com 
 


From: duachirag [mailto:duac@...]
Sent: Monday, December 22, 2008 5:57 PM
To: user@...
Subject: [mule-user] Calling external web service

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. I am also attaching cityrequest.xml with this message.cityrequest.xml

View this message in context: Calling external web service
Sent from the Mule - User mailing list archive at Nabble.com.

RE: Calling external web service

by duachirag :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for your response.

Config file URL, which one exactly? And this is the content in my cityrequest.xml from which it should read the SOAP message:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetCitiesByCountry xmlns="http://www.webserviceX.NET">
      <CountryName>India</CountryName>
    </GetCitiesByCountry>
  </soap:Body>
</soap:Envelope>

And it's a SOAP based web service, do I need any other configurations/transformers?



antoine.borg wrote:
Hi,
 
Looks like the config file URL you used is invalid.
 
If your response is empty, it sounds like you may have a problem with the WS
invocation. Are you passing the correct info to it?
 
A
 
Antoine Borg, Senior Consultant | Tel: +32 28 504 696
ricston Ltd., BP 2, 1180 Uccle, Brussels, BELGIUM
email: antoine.borg <mailto:antoine.borg@ricston.com> @ricston.com | blog:
<http://blog.ricston.com/> blog.ricston.com | web:
<http://www.ricston.com/> ricston.com
 

  _____  

From: duachirag [mailto:duac@gsicommerce.com]
Sent: Monday, December 22, 2008 5:57 PM
To: user@mule.codehaus.org
Subject: [mule-user] Calling external web service


I am new to Mule. I am trying to call
http://www.webservicex.net/globalweather.asmx/GetCitiesByCountry?method=GetC
itiesByCountry. 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. I am
also attaching cityrequest.xml with this message.cityrequest.xml
<http://www.nabble.com/file/p21131102/cityrequest.xml>  

  _____  

View this message in context: Calling
<http://www.nabble.com/Calling-external-web-service-tp21131102p21131102.html
> external web service
Sent from the Mule - User mailing list
<http://www.nabble.com/Mule---User-f2727.html> archive at Nabble.com.

RE: Calling external web service

by antoine.borg :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

HI,

This link: http://www.nabble.com/file/p21131102/cityrequest.xml .. It does
not work! :)

Can you include your Mule config too?

A


Antoine Borg, Senior Consultant | Tel: +32 28 504 696
ricston Ltd., BP 2, 1180 Uccle, Brussels, BELGIUM
email: antoine.borg@... | blog: blog.ricston.com | web: ricston.com

-----Original Message-----
From: duachirag [mailto:duac@...]
Sent: Tuesday, December 23, 2008 3:54 PM
To: user@...
Subject: RE: [mule-user] Calling external web service


Thanks for your response.

Config file URL, which one exactly? And this is the content in my
cityrequest.xml from which it should read the SOAP message:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetCitiesByCountry xmlns="http://www.webserviceX.NET">
      <CountryName>India</CountryName>
    </GetCitiesByCountry>
  </soap:Body>
</soap:Envelope>

And it's a SOAP based web service, do I need any other
configurations/transformers?




antoine.borg wrote:

>
> Hi,
>  
> Looks like the config file URL you used is invalid.
>  
> If your response is empty, it sounds like you may have a problem with
> the WS invocation. Are you passing the correct info to it?
>  
> A
>  
> Antoine Borg, Senior Consultant | Tel: +32 28 504 696 ricston Ltd., BP
> 2, 1180 Uccle, Brussels, BELGIUM
> email: antoine.borg <mailto:antoine.borg@...> @ricston.com | blog:
> <http://blog.ricston.com/> blog.ricston.com | web:
> <http://www.ricston.com/> ricston.com
>  
>
>   _____
>
> From: duachirag [mailto:duac@...]
> Sent: Monday, December 22, 2008 5:57 PM
> To: user@...
> Subject: [mule-user] Calling external web service
>
>
> I am new to Mule. I am trying to call
> http://www.webservicex.net/globalweather.asmx/GetCitiesByCountry?metho
> d=GetC itiesByCountry. 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. I am also attaching cityrequest.xml
> with this message.cityrequest.xml
> <http://www.nabble.com/file/p21131102/cityrequest.xml>
>
>   _____
>
> View this message in context: Calling
> <http://www.nabble.com/Calling-external-web-service-tp21131102p2113110
> 2.html
>> external web service
> Sent from the Mule - User mailing list
> <http://www.nabble.com/Mule---User-f2727.html> archive at Nabble.com.
>
>
>

--
View this message in context:
http://www.nabble.com/Calling-external-web-service-tp21131102p21145759.html
Sent from the Mule - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



RE: Calling external web service

by duachirag :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Problem is solved, thanks for your response!

antoine.borg wrote:
HI,

This link: http://www.nabble.com/file/p21131102/cityrequest.xml .. It does
not work! :)

Can you include your Mule config too?

A


Antoine Borg, Senior Consultant | Tel: +32 28 504 696
ricston Ltd., BP 2, 1180 Uccle, Brussels, BELGIUM
email: antoine.borg@ricston.com | blog: blog.ricston.com | web: ricston.com

-----Original Message-----
From: duachirag [mailto:duac@gsicommerce.com]
Sent: Tuesday, December 23, 2008 3:54 PM
To: user@mule.codehaus.org
Subject: RE: [mule-user] Calling external web service


Thanks for your response.

Config file URL, which one exactly? And this is the content in my
cityrequest.xml from which it should read the SOAP message:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <GetCitiesByCountry xmlns="http://www.webserviceX.NET">
      <CountryName>India</CountryName>
    </GetCitiesByCountry>
  </soap:Body>
</soap:Envelope>

And it's a SOAP based web service, do I need any other
configurations/transformers?




antoine.borg wrote:
>
> Hi,
>  
> Looks like the config file URL you used is invalid.
>  
> If your response is empty, it sounds like you may have a problem with
> the WS invocation. Are you passing the correct info to it?
>  
> A
>  
> Antoine Borg, Senior Consultant | Tel: +32 28 504 696 ricston Ltd., BP
> 2, 1180 Uccle, Brussels, BELGIUM
> email: antoine.borg <mailto:antoine.borg@ricston.com> @ricston.com | blog:
> <http://blog.ricston.com/> blog.ricston.com | web:
> <http://www.ricston.com/> ricston.com
>  
>
>   _____
>
> From: duachirag [mailto:duac@gsicommerce.com]
> Sent: Monday, December 22, 2008 5:57 PM
> To: user@mule.codehaus.org
> Subject: [mule-user] Calling external web service
>
>
> I am new to Mule. I am trying to call
> http://www.webservicex.net/globalweather.asmx/GetCitiesByCountry?metho
> d=GetC itiesByCountry. 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. I am also attaching cityrequest.xml
> with this message.cityrequest.xml
> <http://www.nabble.com/file/p21131102/cityrequest.xml>
>
>   _____
>
> View this message in context: Calling
> <http://www.nabble.com/Calling-external-web-service-tp21131102p2113110
> 2.html
>> external web service
> Sent from the Mule - User mailing list
> <http://www.nabble.com/Mule---User-f2727.html> archive at Nabble.com.
>
>
>

--
View this message in context:
http://www.nabble.com/Calling-external-web-service-tp21131102p21145759.html
Sent from the Mule - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email