Hi there,

I'm having a problem recently with WSDL4J (well, actually, WSDL generation I suppose with Java2WSDL) where arrays are not getting generated with maxOccurs="unbounded". As such when data is replicated it doesn't update properly remotely.

i.e., in a java stub class I'd have something like:
public byte[] content;

This used to cause the WSDL to include maxOccurs="unbounded" along with nillable="true". Now it seems to exclude maxOccurs="unbounded" and so when generating classes from the wsdl I get something like this:

elemField = new org.apache.axis.description.ElementDesc();
elemField.setFieldName("discountIDs");
elemField.setXmlName(new javax.xml.namespace.QName("", "discountIDs"));
elemField.setXmlType(new javax.xml.namespace.QName("http://schemas.xmlsoap.org/soap/encoding/ ", "integer"));
elemField.setNillable(true);
typeDesc.addFieldDesc(elemField);

Whereas previously it would also include the following:
elemField.setMaxOccursUnbounded(true);

I can't figure yet what changed to cause this problem - but has anyone seen this?

I'm depending on Axis 1.4, WSDL4J 1.6.2 (etc). I've tried a couple of other older versions but I can't find the regression.

Any help appreciated.

with regards,
--

Lachlan Deck

Reply via email to