Hello Houssem, maybe this is the same problem I had at 05.06.2009 ? If so see the solution posted the same day to this list.
Mit freundlichen Grüßen / Kind regards Martin Thoma Entwicklung B2M Software AG > -----Ursprüngliche Nachricht----- > Von: houssem ZAIR [mailto:houssem.z...@ebmwebsourcing.com] > Gesendet: Dienstag, 21. Juli 2009 12:26 > An: user@tuscany.apache.org > Betreff: Re: My SCA application cannot communicate with a jax-ws > service > > Raymond Feng a écrit : > > Hi, > > > > Do you use the generated JAX-WS interface for the SCA reference too? > > > > Thanks, > > Raymond > > -------------------------------------------------- > > From: "houssem" <houssem.z...@gmail.com> > > Sent: Monday, July 20, 2009 4:54 AM > > To: <user@tuscany.apache.org> > > Subject: My SCA application cannot communicate with a jax-ws service > > > >> > >> I am running an SCA application referencing a JAX-WS service on > >> Tuscany 1.5 / 2.0 (?). > >> The problem is that no matter what the parameters are, the result is > >> always the same. > >> As an example, my web service has an opeartion returning an integer. > >> And the returned integer is always 0, while it should have another > >> value. > >> > >> > >> My web service is created with jax-ws. It's a simple web service > >> (request : send an integer, response : receive the same integer) > >> ----------------------------------------------------- > >> import javax.jws.*; > >> > >> @WebService > >> public class AccountImpl implements Account { > >> @WebMethod > >> public Integer getPrice(int price) { > >> return price; > >> } > >> } > >> > >> The artefacts are generated with Wsimport. > >> > >> What is the reason of this problem? > >> > >> Houssem. > >> > >> P.S.: there is no problem if the web service is an SCA project > >> exposed as a web service and running on Tuscany. > >> > >> > >> > >> > > > Hi, > > Yes, > I use the generated JAX-WS interface for the SCA reference. > > ------------------------------------------------ > import org.osoa.sca.annotations.Reference; > import org.osoa.sca.annotations.Service; > > @Service(Commerce.class) > public class ComImpl implements Com{ > @Reference > public AccountImpl ComReference; > public Integer getPrice(int i) { > Integer price = this.ComReference.getPrice(i); > return price; > } > } >