Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java2wsdl and parameter names

 
Andy Metcalfe
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 539
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic