finding enclosed type of soap-encoded arrays [message #596213] |
Mon, 22 August 2005 19:24 |
Randall Theobald Messages: 34 Registered: July 2009 |
Member |
|
|
Hi,
I'm having a problem drilling down to find what the element type is of a declared SOAP-encoded array using the eclipse XSD APIs.
Given the following schema defined in a WSDL <types> element:
<schema attributeFormDefault="qualified"
elementFormDefault="unqualified"
targetNamespace="http://inventorycontrol.region.justorders.com/"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd1="http://inventorycontrol.region.justorders.com/">
<import namespace="http://schemas.xmlsoap.org/wsdl/" schemaLocation="http://schemas.xmlsoap.org/wsdl/"/>
<import
namespace="http://schemas.xmlsoap.org/soap/encoding/" schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="Inventory">
<all>
<element name="reorderLevel" nillable="true" type="int"/>
<element name="status" nillable="true" type="string"/>
<element name="buildingID" nillable="true" type="int"/>
<element name="fullStockLevel" nillable="true" type="int"/>
<element name="building_Site_RID" nillable="true" type="int"/>
<element name="unitAvailable" nillable="true" type="int"/>
<element name="isStock" nillable="true" type="string"/>
<element name="building_SID" nillable="true" type="int"/>
<element name="productID" nillable="true" type="string"/>
<element name="location" nillable="true" type="string"/>
<element name="unitHeld" nillable="true" type="int"/>
</all>
</complexType>
<complexType name="ArrayOfInventory">
<complexContent>
<restriction base="soapenc:Array">
<all/>
<attribute ref="soapenc:arrayType" wsdl:arrayType="xsd1:Inventory[]"/>
</restriction>
</complexContent>
</complexType>
<complexType name="Inventories">
<all>
<element name="inventories" nillable="true" type="xsd1:ArrayOfInventory"/>
</all>
</complexType>
</schema>
I load the WSDL file using a ResourceSet and get a com.ibm.etools.wsdl.Definition.
Using the Eclipse debugger, I can drill down and find the declared attribute "wsdl:arrayType",
but its value is always null. I have tried using various XSD APIs, including calling
XSDAttributeDeclaration.getResolvedAttributeDeclaration(), but to no avail.
Any ideas?
|
|
|
Powered by
FUDForum. Page generated in 0.03479 seconds