Connecting Tech Pros Worldwide Forums | Help | Site Map

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

Newbie
 
Join Date: Sep 2008
Posts: 15
#1: Feb 26 '09
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

Expand|Select|Wrap|Line Numbers
  1. <xs:sequence>
  2. <xs:element minOccurs="0" name="param0" nillable="true" type="xs:string"/>
  3. <xs:element minOccurs="0" name="param1" nillable="true" type="xs:string"/>
  4. <xs:element minOccurs="0" name="param2" nillable="true" type="xs:string"/>
  5. </xs:sequence>
  6. </xs:complexType>
  7. </xs:element>
  8.  
  9.  
  10.  
I would like to get my method param names into this wsdl at run time like :

Expand|Select|Wrap|Line Numbers
  1. <xs:sequence>
  2. <xs:element minOccurs="0" name="Father's Name" nillable="true" type="xs:string"/>
  3. <xs:element minOccurs="0" name="Name" nillable="true" type="xs:string"/>
  4. <xs:element minOccurs="0" name="Location" nillable="true" type="xs:string"/>
  5. </xs:sequence>
  6. </xs:complexType>
  7. </xs:element>
  8.  
  9. etc..
  10.  
  11.  
I am only using the axis jars.. So any help in this will be greatly appretiated.

Reply