File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes Java2wsdl and parameter names Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Java2wsdl and parameter names" Watch "Java2wsdl and parameter names" New topic

Java2wsdl and parameter names

Andy Metcalfe

Joined: Nov 23, 2004
Posts: 5
I'm having trouble getting java2wsdl to pass through names to message part objects.

public String foo(String ick, String bar);

turns into

<wsdl:message name="fooRequest">
<wsdl art name="in0" type="xsd:string"/>
<wsdl art name="in1" type="xsd:string"/>

I would like it to look like

<wsdl:message name="fooRequest">
<wsdl art name="ick" type="xsd:string"/>
<wsdl art name="bar" type="xsd:string"/>

My ant compile task looks like:

<javac srcdir="${src.dir}" destdir="${build.dir}" debug="on" debuglevel="source,lines,vars">

I've read that compiling with debug info is critical to parameter names making it through to the WSDL, but I can't get this to work.


Tim West
Ranch Hand

Joined: Mar 15, 2004
Posts: 539
You'll probably have more luck with this one in the Web services forum.

Although I've used Axis I'm afraid I can't help - I always go WSDL -> Java so I have total control over what goes into my WSDL - the Java side is always going to be messy I find. It's entirely possible that what you want isn't possible with Axis - all the Web services libraries have their idiosyncracies.

[ June 23, 2005: Message edited by: Tim West ]
I agree. Here's the link:
subject: Java2wsdl and parameter names
It's not a secret anymore!