How can I make wsconsume generate arrays instead of Lists?

Solution Verified - Updated -

Issue

  • My EJB uses array datatypes, but when wsconsume generates the web services artifacts, it converts array to java.util.List. Is there a way to configure wsconsume such that it's not modifying the object datatype?
For instance, I have the EJB method:
public Order[] getOrders()

The web services artifacts for this EJB method is:
public java.util.List<Order> getOrders()

Environment

  • JBoss Enterprise Application Platform (EAP) 6.x
  • JBoss Enterprise Application Platform (EAP) 5.1 or higher w/ CXF

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content