Need help parsing ComplexContent
Tim Hamer <[email protected]> Wed, 25 Apr 2007 17:00:31 -0500 (CDT)
| Newsgroups | gmane.comp.apache.webservices.wsif.user |
|---|---|
| Message-ID | <[email protected]> |
I am trying to parse a WSDL containing the snippet below. I get the schema types using Parser.getAllSchemaTypes() and iterate over the list until I find the object I'm looking for. This works successfully for complexType objects which do not contain a complexContent object, but fails when complexContent is present, as in the example below.
How can I extract the sequence elements from the complexContent? The array I get is empty and the only other way I can think of accessing them would be through the extension, which is not an accessible field.
thanks,
Tim
<s:complexType name="MarketHeadlines">
<s:complexContent mixed="false">
<s:extension base="tns:Common">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="Headlines" type="tns:ArrayOfMarketHeadline"/>
</s:sequence>
</s:extension>
</s:complexContent>
</s:complexType>