You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by dd du <da...@gmail.com> on 2007/08/17 18:22:56 UTC

Question about jaxws-calculator example

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