You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Vance Vagell <va...@vancevagell.com> on 2007/05/22 18:19:58 UTC

SOAP-encoding arrays

Hi folks,

Similar to Aleksander Slominski's question in 2004 (http://mail-archives.apache.org/mod_mbox/xml-xmlbeans-dev/200403.mbox/%3c405B7BE7.4060004@cs.indiana.edu%3e), I'm trying to use XmlBeans to parse web service schemas, some of which include a special construct for arrays.  I've worked out how to implement this in my project, but there is one piece of data I can't seem to retrieve.  Here is an example from the Google search web service schema:

      <xsd:complexType name="ResultElementArray">
        <xsd:complexContent>
          <xsd:restriction base="soapenc:Array">
             <xsd:attribute ref="soapenc:arrayType" wsdl:arrayType="typens:ResultElement[]"/>
          </xsd:restriction>
        </xsd:complexContent>
      </xsd:complexType>

How can I access the value of the wsdl:arrayType attribute of this <xsd:attribute> definition?  I have both the SchemaProperty and the SchemaType defining this attribute, but can't find an accessor on either that can get me this information.  With the value of that wsdl:arrayType attribute, I can take care of the rest.

The response from Radu to Aleksander was interesting, but I'm performing all of this work dynamically at runtime, and not using XmlBeans to generate classes from schemas.  So rather than using a SchemaCodePrinter to get at this, I need to be able to get this info from the SchemaProperty or SchemaType object.

Any ideas?

Thanks,
Vance

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org