wood burning stoves*
The moose likes Web Services and the fly likes AnyType in WSDL tranformation - ESB 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 » Java » Web Services
Bookmark "AnyType in WSDL tranformation - ESB" Watch "AnyType in WSDL tranformation - ESB" New topic

AnyType in WSDL tranformation - ESB

Rahul Juneja
Ranch Hand

Joined: Aug 03, 2002
Posts: 425

I am trying to created a ESB with Routing Service.
I have one Order object which has list of orderLineItems. When i create EJB3 based webservices, the WSDL generated has both the complex types defined properly, The complex type for Order and OrderLineItems are properly defined but OrderLineItems is not used.
instead the element in the Order type is defined as :

<element name="orderLineItems" type="ns1:list" nillable="true"/>

and list element is defined(in WSDL) as

<complexType name="list">
<extension base="tns:collection">
<complexType name="collection">
<element name="item" type="anyType" minOccurs="0" maxOccurs="unbounded"/>

Now, when i want to transform this for the ESB routing i can't do it as it is of type anyType

I am transforming the whole order object and putting it in another smaller order object which again has a list of orderlineItems.

Also, I am trying to do this transformation in jdeveloper.

Any clues or pointers of how to resolve this is highly appreciated.


Rahul Juneja
ThoughtClicks - http://techlabs.thoughtclicks.com
Rahul Juneja
Ranch Hand

Joined: Aug 03, 2002
Posts: 425
If you want to have alook at the WSDL you can find the same at the following location.


Also Class Code is as follows.

Order Class :
public class Order implements Serializable {

private Long id;
private String orderNumber;
private String orderDetail;
private List<OrderLineItems> orderLineItems;


OrderLineItems Class:

private Long id;
private String orderLineNumber;
private String lineDetail;

They have getter and setter for the same.

Consider Paul's rocket mass heater.
subject: AnyType in WSDL tranformation - ESB
Similar Threads
Problem with arrays of primitive types
Problem with WSDL publishing
java.io.IOException: Type {http://lang.java}Exception is referenced but not defined.
Using extensions in XML - error underfined 'base'
JAXB or JSR-181 Annotations