Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Web Services
Search Coderanch
Advance search
Google search
Register / Login
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
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Web Services
jax-ws and annotations
John Farrel
Ranch Hand
Posts: 105
posted 9 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I am trying to produce a jax-ws web service that accepts a list of complex items, such that the input XML looks something like this:
<ITEMS>
<ITEM>
... values
</ITEM>
<ITEM>
... values
</ITEM>
</ITEMS>
the class looks like this:
@XmlElement( name="item" , required=true ) @XmlElementWrapper( name="items" , required=true) public List<RequestItem> getRequestItems() { return requestItems; }
but these annotations appear to be ignored.
all I get is the ability to add multiple
<RequestItem></RequestItem> values with no wrapper.
Do these annotations work for jax-ws?
John Farrel
Ranch Hand
Posts: 105
posted 9 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
For those who care, it appears this is a bug in the
ant
wsgen action.
If you remove xendorsed="true" from the wsgen action then it all works as expected.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
SAAJ vs JAXP vs JAX-RPC
XML to be Split
Jersey along with JAX-WS
use jaxws:binding to change a name of a web method
how to convert soap to java
More...