This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Web Services and the fly likes AXIS - wsdl with meaningful parameter names instead of in0,in1...? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "AXIS - wsdl with meaningful parameter names instead of in0,in1...?" Watch "AXIS - wsdl with meaningful parameter names instead of in0,in1...?" New topic
Author

AXIS - wsdl with meaningful parameter names instead of in0,in1...?

Elise Pivin
Greenhorn

Joined: Apr 28, 2005
Posts: 5
Hi,
In Axis, I have just realized that the wsdl files (found using Tomcat Web Application Manager) automatically generated by my application contained:
====================
....
<wsdl:messagename="NEMOmodifica_nemonicoRequest"> <wsdl art name="in0" type="xsd:string" />
<wsdl art name="in1" type="xsd:string" />
</wsdl:message>
...
===========================

Now, I would like to have the parameter names instead of in0 and in1 like I have defined it in the routine: public ObjResultadoBasico NEMOmodifica_nemonico(String p_nemonico_old, String p_nemonico_new)

Is there a way I could do it automatically?
I mean, how can I generate wsdl with meaningful parameter names instead of in0,in1...?

I think there might be a way of doing it. I think that the people working previously on this project managed to do it.... but there were using specific tools/builder. I am not using anything. I compile using a self-written script.. it might be the problem, I don't know!

Could you help!
Thank you
Elise
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Celia, welcome to JavaRanch,

We have a simple policy here that all posters should comply with regarding their name. Would you please take a minute and read the JavaRanch naming policy and correct your name accordingly. You can change it by following this link.

Thank you.
Balaji


Spritle Software Blogs
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
Originally posted by celia:

I think there might be a way of doing it. I compile using a self-written script.. it might be the problem, I don't know!


Elise,
Yes.its possible. add javac -g option to your script.

like javac -g HelloWorld.java will help you preserve the input names for axis generated wsdl.

Welcome again.
Regards
Balaji
Elise Pivin
Greenhorn

Joined: Apr 28, 2005
Posts: 5
Thank you so much!!! It works!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: AXIS - wsdl with meaningful parameter names instead of in0,in1...?
 
Similar Threads
WSDD - Apache axis
This is not cool... Anyone know why?
How do I build a WSDL with meaningful names instead of in0?
How to create axis wsdl with user friendly names
Java2wsdl and parameter names