Hi
Bill,
To clarify, you can
use an interface (which should be compiled with -g) which I still recommend. Use
the -i parameter for Java2WSDL to specify a trivial implementation class which
implements your interface. I have never had a problem getting Java2WSDL to pick
up my parameter names this way.
--Thunder
-----Original Message-----
From: Bill Werth [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 9:39 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Method parameter names not appearing in WSDLThanks. That was the problem. I was using an interface (as recommended in an article I read).After changing it to a class and adding some empty method bodies, the parameter names are now appearing just fine.-----Original Message-----
From: Yakulis, Ross (Ross) [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 9:33 AM
To: [EMAIL PROTECTED]
Subject: RE: Method parameter names not appearing in WSDLIs the java file a class or interface? Param names only work for classes and not interfaces.-----Original Message-----
From: Bill Werth [mailto:[EMAIL PROTECTED]
Sent: Friday, July 02, 2004 9:31 AM
To: Axis-User (E-mail)
Subject: Method parameter names not appearing in WSDLI've spent a few hours going through the archive and reading the user guide.I've seen posts about this, but nothing seems to work. When I create the WSDL from a java file, the method parameters are named In0, In1, In2, instead of something like UserID, Password, etc.I have a file named RENS.java in the DataHandlers directory on my Win 2000 PC. I compile it like so:javac -g DataHandlers/RENS.javaI run Java2WSDL like so:java org.apache.axis.wsdl.Java2WSDL -o RENS.wsdl -l"http://localhost:8080/axis/services/DataHandlers" -n urn:DataHandlers -p"DataHandlers" urn:DataHandlers DataHandlers.RENSA method that looks like this:public int runCampaign(String SessionID, String CampaignName);generates in the RENS.wsdl something like this:<wsdl:message name="stopCampaignRequest"><wsdl:part name="in0" type="xsd:string"/><wsdl:part name="in1" type="xsd:string"/></wsdl:message>I'm running J2SE Version 1.4.1 and Axis 1.1 release on Tomcat 4.1.Any ideas?The first time I renamed all of the parameter names by hand, but that is too much work to repeat more than a few times.Thanks.
