• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JAXB or JSR-181 Annotations

 
Rahul Juneja
Ranch Hand
Posts: 425
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic