File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Elise Pivin
Greenhorn
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3150
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you so much!!! It works!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic