Skip to Content
0
Former Member
Oct 04, 2005 at 07:53 PM

Arraylist in Web Service

254 Views

Hello All,

I am publishing a method from a stateless session bean as a webservice. The interface of this method passes to custom Data Objects. One of the Data Objects has an ArrayList of another custom Data Object as a variable. In the WSDL after publishing i see this statement:

- <xs:complexType name="ArrayList">

- <xs:sequence>

<xs:element name="ArrayList" minOccurs="0" maxOccurs="unbounded" type="xs:anyType" />

</xs:sequence>

</xs:complexType>

Why is this "anyType" not being shown as of type XYZ data object which I may have?

Is there any way i can change the WSDL during generation to show the actual data type of the elements of the Arraylist?

All help is greatly appreciated.

Thanks,

Murtaza.