Problem with wsimport generated complextype

Hi-

I am trying to implement a web service. I built the server side with axis, and it seems to be working fine. When I use wsimport to generate client side stubs, it seems to be unable to fully generate the client bean.

The relevant (i think) part of the wsdl generated by axis:

<xs:schema attributeFormDefault="qualified" elementFormDefault="qualified" targetNamespace="http://core.cplx.services.test/xsd">

<xs:element name="CpBean" type="ax21:CpBean"/>

<xs:complexType name="CpBean">

<xs:sequence>

<xs:element name="name" nillable="true" type="xs:string"/>

<xs:element name="num" type="xs:int"/>

<xs:element maxOccurs="unbounded" name="strings" nillable="true" type="xs:string"/>

</xs:sequence>

</xs:complexType>

</xs:schema>

It generates a CpBean class that has three data members:

String name;

Int num;

List strings;

In my server side bean, strings is a String[], not a List. I suppose that doesn't matter...

However, it generates getters for all of them, but setters for name and num only, not strings.

Does anyone know why this is?

Message was edited by:

dudleydawson

[1643 byte] By [dudleydawsona] at [2007-11-27 3:43:24]
# 1
I believe "strings" does not need a setter because you can get a reference to the List object via the getter, and then modify the List itself, no need to use the setter.
dkohlerta at 2007-7-12 8:47:03 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...