Try

<xs:element name="getScheduledReports">
        <xs:complexType/>
</xs:element>

<wsdl:message name="getScheduledReportsMessage">
        <wsdl:part element="ns0:getScheduledReports" name="part1"/>
</wsdl:message>


William
                         

> -----Original Message-----
> From: Nirmit Desai [mailto:[EMAIL PROTECTED] 
> Sent: Friday, 28 July 2006 3:40 AM
> To: [email protected]
> Subject: [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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to