Hi, all,

 

In the jaxws-calculator example, the CalculatorService has a webservice
method: int add(int value1, int value2), then we have class Add and
class AddResponse, if this is the case, why do we need Add and
AddResponse classes for the service? Should we change the webservice
method to:

 

AddResponse add( Add add);

 

In this way we set value1 and value2 to Add object and set return value
in AddResponse object, otherwise the Add and AddResponse do not make
sense to have them in the webservice.

 

Anybody can explain?

 

Thanks in advance.

 

David

Reply via email to