Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » finding enclosed type of soap-encoded arrays
finding enclosed type of soap-encoded arrays [message #596213] Mon, 22 August 2005 19:24
Randall Theobald is currently offline Randall TheobaldFriend
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?
Previous Topic:Some Basic Qs
Next Topic:finding enclosed type of soap-encoded arrays
Goto Forum:
  


Current Time: Sun Aug 09 18:29:04 GMT 2020

Powered by FUDForum. Page generated in 0.05767 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top