• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Rob Spoor
  • Devaka Cooray
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Jj Roberts
  • Al Hobbs
  • Piet Souris

Java2wsdl and parameter names

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 539
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic