jQuery in Action, 2nd edition*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Java2wsdl and parameter names" Watch "Java2wsdl and parameter names" New topic
Author

Java2wsdl and parameter names

Andy Metcalfe
Greenhorn

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"/>
</wsdl:message>

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"/>
</wsdl:message>

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.

Help?

_Am
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.

-Tim
[ June 23, 2005: Message edited by: Tim West ]
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Java2wsdl and parameter names
 
Similar Threads
WSDL and attachments
How to create axis wsdl with user friendly names
WSDD - Apache axis
AXIS - wsdl with meaningful parameter names instead of in0,in1...?
RPC vs Document -Part element or type