Title: Message
I believe there is a "-i" switch for java2wsdl which takes the name of the class that implements the interface you are using to generate the WSDL. The dedug info for that class is used to get the parameter names. Also when you compile that class make sure you compile it with debug turned ON. Else even this "-i" won't work.
 
Thanks!
 
-- Niranjan.
 
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, April 02, 2004 10:47 AM
To: [EMAIL PROTECTED]
Subject: Naming of parameters in generated WSDL

Hi all

I have a simple document/literal WS. I use java2wsdl Ant task to generate a WSDL from my interface class which represents the service. Previously, the names used for the parameters in the WSDL matched the names of the parameters i use in the java interface. This was nice because it was kind of self documenting. For some unknown reasons this changed and now "in0" - "in4" are generated (with the appropriate types).

Any idea how i can specify that the names of the parameters of my interface are used again?

 <wsdl:types>
  <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.geres.ch/Geres_MeldungAnGemeinde_V1_0" elementFormDefault="qualified">

   <element name="getMeldung">
    <complexType>
     <sequence>
      <element name="in0" type="xsd:int"/>
      <element name="in1" type="xsd:int"/>
      <element name="in2" type="xsd:dateTime"/>
      <element name="in3" type="xsd:string"/>
     </sequence>
    </complexType>
   </element>
   <element name="getMeldungResponse">
    <complexType>
     <sequence>
      <element name="getMeldungReturn" type="xsd:string"/>
     </sequence>
    </complexType>
   </element>
  </schema>
 </wsdl:types>


Thanks,

Thomas


       

Reply via email to