Please take a look at the sample at [1]. It uses "wsimport" to generate java interfaces from a WSDL, and use it to talk to external weather WS using Tuscany SCA.

<composite xmlns="http://www.osoa.org/xmlns/sca/1.0"; xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0"; targetNamespace="http://weather"; name="WeatherForecast">
   <component name="WeatherForecastService">
     <implementation.java class="weather.WeatherForecastImpl" />
      <reference name="weatherForecast">
<binding.ws wsdlElement="http://www.webservicex.net#wsdl.port(WeatherForecast/WeatherForecastSoap)" />
     </reference>
     </component>
 </composite>

Please note binding.ws is used.

[1] https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/samples/zipcode-jaxws/

Thanks,
Raymond
--------------------------------------------------
From: <[email protected]>
Sent: Friday, October 16, 2009 7:42 AM
To: "user" <[email protected]>
Subject: reference to jax-ws external web service (calling it)

Hi,

i used tuscany but i have not found the right directions how to call an external web service.. first of all, my question is:

can an external webservices implemented in JAX-WS be used as components in a SCA architecture (or this is right only for bpel process and SCA pure java classes)?

if it's so, how can pass a jax-ws reference in a SCA java class and call it? i see the document:
http://www.osoa.org/display/Main/JAX-WS+Services+Integration
but the jaxws.implementation doesn't work
(tuscany give me:

GRAVE: XMLSchema validation error occured in: Calculator.composite ,line = 63, column = 9, Message = cvc-complex-type.2.4.a: Invalid content was found starting with element 'implementation.jaxws'

Somebody told me that in 2008 this implementation didin't existed yet:

http://mail-archives.apache.org/mod_mbox/tuscany-user/200801.mbox/%[email protected]%3e

today?? there is something in tuscany that works?????

2)An idea could be: i can use the java artifact get by the wsimport utility (from wsdl to java code interfaces) and invoke my jax-ws web services into a pure java SCA class?


thank you very much!

Roby

Reply via email to