This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes JAXB or JSR-181 Annotations Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "JAXB or JSR-181 Annotations" Watch "JAXB or JSR-181 Annotations" New topic
Author

JAXB or JSR-181 Annotations

Rahul Juneja
Ranch Hand

Joined: Aug 03, 2002
Posts: 425
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
ThoughtClicks - http://techlabs.thoughtclicks.com
Rahul Juneja
Ranch Hand

Joined: Aug 03, 2002
Posts: 425
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JAXB or JSR-181 Annotations