aspose file tools*
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
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
 
 
subject: JAXB or JSR-181 Annotations
 
Similar Threads
JSR-118 vs. JSR-224
JaxB annotation to control the wsdl generated with jsr181
JSR 181 With JBoss 4
AnyType in WSDL tranformation - ESB
Hibernate 3 Annotations