You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Nirmit Desai <ni...@us.ibm.com> on 2006/07/27 19:40:28 UTC

[Axis2 1.0] WSDL2Java: WSDL for operations without params

Hi all,

I was wondering what is the right way to write a WSDL for a service
operation taking no parameters.

I tried this as the parameter type:

<complexType name="Void"/>

<element name="getMembershipInfoParam" type="xsd1:Void"/>

<message name="getMembershipInfo">
        <part element="xsd1:getMembershipInfoParam" name="in"/>
</message>

<portType name="ClubInfoPortType">
        <operation name="getMembershipInfo">
            <input message="tns:getMembershipInfo" name="getMembershipInfo"
/>
            ....
        </operation>
</portType>

But WSDL2Java generates a Void.Java and specifies Void as the type of the
operation parameter.

How to write it such that the generated operation takes no parameters?

Thanks,

-Nirmit


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org