Hi William,

it creates a getScheduledReports.java in data bindings and puts that as the
parameter type of the method.

I suspect it is impossible to have it generate an empty parameter list for
methods in WSDL2Java. Maybe this is a bug.

-Nirmit



                                                                           
             "William                                                      
             Ferguson"                                                     
             <William.Ferguson                                          To 
             @contractorsoluti         <[email protected]>           
             ons.com.au>                                                cc 
                                                                           
             07/27/2006 07:20                                      Subject 
             PM                        RE: [Axis2 1.0] WSDL2Java: WSDL for 
                                       operations without params           
                                                                           
             Please respond to                                             
             [EMAIL PROTECTED]                                             
                  he.org                                                   
                                                                           
                                                                           




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]




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

Reply via email to