@WebResult(name="sum")
double sum(double arg0, double arg1) {
          return (arg0 + arg1)
}

tog wrote:
Thanks Eric,

but what I want to change is in the schema not in the part i.e.

<xsd:complexType name="addResponse">
        <xsd:sequence>
                <xsd:element name="return" type="xsd:double"/>
        </xsd:sequence>
</xsd:complexType>

Cheers
Guillaume


On Jan 8, 2008 6:00 PM, Eric Rodriguez <[EMAIL PROTECTED]> wrote:
Try @WebParam

http://cwiki.apache.org/CXF20DOC/how-do-i-develop-a-service.html

Regards,


tog wrote:
When publishing a service using aegis, the name of the output message
is "return" when my code is doing something like:

      double sum(double arg0, double arg1) {
          return (arg0 + arg1)
      }

I mean the wsdl is this:
<xsd:complexType name="addResponse">
    <xsd:sequence>
        <xsd:element name="return" type="xsd:double"/>
    </xsd:sequence>
</xsd:complexType>

Is there a way to change the name - I would like it not to be a java
keyword :-) ?

Cheers




Reply via email to