I have an xsd that looks like
<xsd:complexType name="FactoryResourceAttributesDocumentType">
<xsd:sequence>
...
<xsd:element name="TotalNumberOfContainedResources" type="xsd:long"/>
<xsd:element name="ContainedResource" type="xsd:anyType" minOccurs="0"
maxOccurs="unbounded"/>
...
<xsd:any namespace="##other" processContents="lax" minOccurs="0"
maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:anyAttribute namespace="##other" processContents="lax"/>
</xsd:complexType>
The 'ContainedResource' can either be a FactoryResourceAttributesDocument or a
BasicResourceAttributesDocument.
When I receive the data from the web services the XML looks like
<ContainedResource xsi:type="BasicResourceAttributesDocumentType">
...
</ContainedResource>
but the ADB binding code generated by WSDL2JAVA does not handle the xsi:type
attribute but rather expects the XML to look like
<ContainedResource>
<BasicResourceAttributesDocumentType>
...
</BasicResourceAttributesDocumentType>
</ContainedResource>
Is there something that will make it work with the xsi:type attribute other
than change the code by hand?
Thanks.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]