• 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

JAXB or JSR-181 Annotations

 
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Folks,

I am creating some JSR-181 based webservices in OracleJDeveloper but the services has some complex type defined schemas as Order and OrderLineItems.

Order has many orderLineItems, but the WSDL formed for this has a schema which defines order has an element named orderLineItems and its type ="anyType".

Is there any way through JSR-181 or JAXB annotations i can control this type defination and make it as type of orderLineItems and and maxOccurs="unbounded"

Any pointers are highly appreciated.

Thanks,
Rahul
 
Rahul Juneja
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just an update. I have tried "XMLElement(type="OrderLineItems.class") of JAXB2 on my variables in order class but somehow when the wsdl gets generated it doesn't makes any difference. and its still list.

Any links are highly appreciated.

Thanks,
Rahul
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic