Return-Path: Delivered-To: apmail-tuscany-user-archive@www.apache.org Received: (qmail 7996 invoked from network); 5 Jun 2009 11:56:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Jun 2009 11:56:03 -0000 Received: (qmail 42450 invoked by uid 500); 5 Jun 2009 11:56:15 -0000 Delivered-To: apmail-tuscany-user-archive@tuscany.apache.org Received: (qmail 42345 invoked by uid 500); 5 Jun 2009 11:56:15 -0000 Mailing-List: contact user-help@tuscany.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@tuscany.apache.org Delivered-To: mailing list user@tuscany.apache.org Delivered-To: moderator for user@tuscany.apache.org Received: (qmail 33559 invoked by uid 99); 5 Jun 2009 11:44:35 -0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) From: Martin Thoma To: "user@tuscany.apache.org" Date: Fri, 5 Jun 2009 13:42:36 +0200 Subject: using webservices transparent Thread-Topic: using webservices transparent Thread-Index: Acnl0riY9qzOcOy0SKmW8NqF/rGlKA== Message-ID: <11512CD2E0C72C4DB2D6FC2413F40BA102994F0939@ks1.B2MSoftwareAG.local> Accept-Language: de-DE Content-Language: de-DE X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: de-DE Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Hello, I am trying to integrate an external web service(represented by WSDL) in a = SCA component within the Tuscany platform (Version 1.3.1). The web services= is specified as reference in the component composite, as well as annotated= in implementation code(see below). The example that I implemented was simi= lar to the xml-bigbank example in the tuscany 1.3.1 version. With the examp= les (see code below), I got different results. But I want to use a transpla= nt solution provided by the tuscany framework, where I don't have to use ge= nerated stub code(e.g. from axis2 wsdl2java) in the implementation(client) = code. =20 As a first step I developed a external test webservice operated on axis2 s= erver(outside the tuscany framework). To use this web service in the tuscany platform, I declared this interface,= which represents external web service(inside tuscany framework): =20 @Remotable public interface TestService{ Result foo(Request r); } with Result and Request as normal POJO classes. The binding in client.composite: the corresponding wsdl =09 the TestClient (implementation of remotable interface): @Reference=20 protected TestService testService; ... Request r =3D new Request(); Result rs =3D testService.foo(r); =09 and everything works fine (no axis,axis2, etc. stuff in client code) ;-) Now I tried to integrate a foreign external webservice=20 (URI: http://www.webservicex.net/WeatherForecast.asmx?wsdl): The interface: @Remotable public interface WeatherService { GetWeatherByPlaceNameResult GetWeatherByPlaceName(String placeName) th= rows java.rmi.RemoteException; } and again with GetWeatherByPlaceNameResult as POJO class. The binding=20 the corresponding wsdl =09 and the TestClient: @Reference protected WeatherService weather; ... GetWeatherByPlaceNameResult result =3D weather.GetWeatherByPlaceName("New = York"); System.out.println(result.getPlaceName()); but this time the POJO is always empty ! If I changed the interface WeatherService to @Remotable public interface WeatherService { OMElement GetWeatherByPlaceName(String placeName) throws java.rmi.Rem= oteException; } =09 I got the data but this is not transparent anymore! Any ideas why the GetWeatherByPlaceNameResult object is always empty ? Mit freundlichem Gru=DF / Kind regards Martin Thoma