Generating wsdl from java using the formal parameter names in my methods

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TeenaRoz
    New Member
    • Sep 2008
    • 15

    Generating wsdl from java using the formal parameter names in my methods

    Hi,

    I am using axis jars to convert my java classes into wsdl for API purpose. I notice that, instead of generating the parameter names same as what my method accepts, I am getting it as param0,param1 etc.. here is an examle

    Code:
    <xs:sequence>
    <xs:element minOccurs="0" name="param0" nillable="true" type="xs:string"/>
    <xs:element minOccurs="0" name="param1" nillable="true" type="xs:string"/>
    <xs:element minOccurs="0" name="param2" nillable="true" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    I would like to get my method param names into this wsdl at run time like :

    Code:
    <xs:sequence>
    <xs:element minOccurs="0" name="Father's Name" nillable="true" type="xs:string"/>
    <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string"/>
    <xs:element minOccurs="0" name="Location" nillable="true" type="xs:string"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    
    etc..
    I am only using the axis jars.. So any help in this will be greatly appretiated.
Working...