This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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
 
Similar Threads
AnyType in WSDL tranformation - ESB
JaxB annotation to control the wsdl generated with jsr181
Hibernate 3 Annotations
JSR-118 vs. JSR-224
JSR 181 With JBoss 4