Slight correction...
On 20/07/2009, at 3:20 PM, Lachlan Deck wrote:
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);
- elemField.setNillable(false);
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
with regards,
--
Lachlan Deck