Re: Need help parsing ComplexContent

Philipp Leitner <[email protected]> Thu, 26 Apr 2007 10:41:58 +0200
Newsgroups gmane.comp.apache.webservices.wsif.user
Message-ID <[email protected]>
AFAIK the WSIF parser supports only global types. Local definitions as 
in your extension are not supported.

/philipp

Tim Hamer schrieb:
> 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>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]