I actually wonder whether the following attribute definition is actually a valid XML schema construct.
<attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:string[]"/> As clearly you are referring to an existing (global) attribute definition. I might stand corrected, though .. ;-). Werner > -----Ursprüngliche Nachricht----- > Von: mitch finegold [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 27. März 2007 04:00 > An: [email protected] > Betreff: [castor-user] Schema Array ComplexType > > I have a Castor Schema in memory representing the below schema and am not > sure how to retrieve the value of the "wsdl:arrayType" attribute for each > of > these complexTypes using the Castor API. > > For each ComplexType object, I try to call complexType.getAttributeDecls > to > get an enumeration of AttributeDecl objects. The AttributeDecl object > contains other info inside the complexType tag but not the "xsd:string[]" > type I am looking for. > > How do I retrieve this array type from the ComplexType object? > > > > <schema targetNamespace="urn:uds" > xmlns="http://www.w3.org/2001/XMLSchema"> > > <import > namespace="http://schemas.xmlsoap.org/soap/encoding/" > schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"/> > > <complexType name="ArrayOf_tns1_Entitlement"> > <complexContent> > <restriction base="soapenc:Array"> > <attribute > ref="soapenc:arrayType" > wsdl:arrayType="xsd:string[]"/> > </restriction> > </complexContent> > </complexType> > <complexType name="ArrayOf_tns1_EntitlementIdentifier"> > <complexContent> > <restriction base="soapenc:Array"> > <attribute > ref="soapenc:arrayType" > wsdl:arrayType="xsd:string[]"/> > </restriction> > </complexContent> > </complexType> > <complexType name="ArrayOf_tns1_IsEntitledResponse"> > <complexContent> > <restriction base="soapenc:Array"> > <attribute > ref="soapenc:arrayType" > wsdl:arrayType="xsd:string[]"/> > </restriction> > </complexContent> > </complexType> > </schema> > > _________________________________________________________________ > Live Search Maps - find all the local information you need, right when you > need it. http://maps.live.com/?icid=hmtag2&FORM=MGAC01 > > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

