You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by Arnt Schoning <as...@hotmail.com> on 2007/07/26 20:00:00 UTC

Steps to reference an external soap web service

Hi there,
 
I've downloaded the Tuscany SCA Java 0.91 release, and now I'm trying to reference an external SOAP Web Service. I've had a look at the helloworld-ws-reference (it runs fine) and at http://cwiki.apache.org/confluence/display/TUSCANY/SCA+Java+binding.ws, but I'm still a bit confused on what the steps are (when it becomes a bit more complex and I don't control the server side..) I'd like to reference e.g. http://www.webservicex.net/WeatherForecast.asmx?WSDL (.Net), but how should I go about this? 
<component name="WeatherComponent">  <implementation.java class="demo.WeatherComponent"/>    <reference name="weatherService">      <interface.wsdl interface="http://www.webservicex.net#wsdl.interface(WeatherForecastPortType)"/>      <binding.ws endpoint="http://www.webservicex.net#wsdl.endpoint(WeatherForecast/WeatherForecastPort)"/>    </reference></component>
 
I assume I need to use wsdl2java or something first (to generate the weather service interface)? I.e. use AXIS, CFX or is this something Tuscany does? Any guidance appreciated!
 
 
Thanks,
Arnt
_________________________________________________________________
PC Magazine’s 2007 editors’ choice for best web mail—award-winning Windows Live Hotmail.
http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HMWL_mini_pcmag_0707

Re: Steps to reference an external soap web service

Posted by shaoguang geng <ge...@yahoo.com>.
To reference a web service, you must copy the WSDL to your classpath:/wsdl folder. I noticed the point that Tuscany is not able to reference directly. I wish it would be solved in the near future.

Good luck

Arnt Schoning <as...@hotmail.com> wrote: Hi there,
 
I've downloaded the Tuscany SCA Java 0.91 release, and now I'm trying to reference an external SOAP Web Service. I've had a look at the helloworld-ws-reference (it runs fine) and at http://cwiki.apache.org/confluence/display/TUSCANY/SCA+Java+binding.ws, but I'm still a bit confused on what the steps are (when it becomes a bit more complex and I don't control the server side..) I'd like to reference e.g. http://www.webservicex.net/WeatherForecast.asmx?WSDL (.Net), but how should I go about this? 
                      
 
I assume I need to use wsdl2java or something first (to generate the weather service interface)? I.e. use AXIS, CFX or is this something Tuscany does? Any guidance appreciated!
 
 
Thanks,
Arnt
_________________________________________________________________
PC Magazine’s 2007 editors choice for best web mail—award-winning Windows Live Hotmail.
http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HMWL_mini_pcmag_0707

       
---------------------------------
Building a website is a piece of cake. 
Yahoo! Small Business gives you all the tools to get online.