Raymond Feng a écrit :
Hi,
Do you use the generated JAX-WS interface for the SCA reference too?
Thanks,
Raymond
--------------------------------------------------
From: "houssem" <[email protected]>
Sent: Monday, July 20, 2009 4:54 AM
To: <[email protected]>
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;
}
}