For XSD files like this:
<complexType name="Document">
<element name="attachments" type="string" minOccurs="0"
maxOccurs="unbounded"/>
</complexType>
SourceGenerator generates a "sensible" class:
public abstract class Document implements java.io.Serializable {
private java.util.Vector _attachmentsList;
..
}
However, when arrays are structured with a wrapper element, which seems
to be the standard in SOAP messages:
<complexType name="Document">
<element name="attachments" type="tns:ArrayOfFileName"/>
..
</complexType>
<complexType name="ArrayOfFileName">
<sequence>
<element name="item" type="string" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
Castor generate an extra level of indirection that I don't want:
class Document {
private Attachments _attachments;
}
class Attachments extends ArrayOfAttachment ...
class ArrayOfAttachment implements java.io.Serializable {
private java.util.Vector _itemList;
}
Is there any way to modify this behavior? Alternately, have people been
sending SOAP messages with arrays without the wrapper element? Obviously
you don't need the wrapper element if you are using Axis with Castor,
but what about on the .NET side?
Thanks,
Bill
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user