Following is the configuration for which I am trying to create a WADL
{
"id": "ABCD",
"type": "INBOUND",
"subtype": "HTTPPUSH",
"config": {
"attributes": [
{
"name": "A",
"type": "array",
"attributes": [
{
"name": "B",
"type": "array",
"attributes": [
{
"name": "C",
"type": "string"
}
]
}
]
}
]
}
}
When I try to achieve a configuration in which "attributes" is an array like the one that I specified above, The following WADL is generated
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified" elementFormDefault="qualified">
<xs:element name="PostBody_ABCD">
<xs:complexType>
<xs:all>
<xs:element name="transactionId" type="xs:string" />
<xs:element name="data">
<xs:complexType>
<xs:sequence maxOccurs="50000" minOccurs="0">
<xs:element name="A">
<xs:complexType>
<xs:sequence>
<xs:element name="B">
<xs:complexType>
<xs:sequence>
<xs:element name="C" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
</xs:element>
</xs:schema>
but now if the type of attribute is an object
{
"id": "ABCD",
"type": "INBOUND",
"subtype": "HTTPPUSH",
"config": {
"attributes": [{
"name": "A",
"type": "object",
"attributes":
"name": "B",
"type": "object",
"attributes":
"name": "C",
"type": "string"
}
]
}
}
what will be the changes that will occur in the WADL document? My question in most simple way asks, if the attribute is of type object, then can "xs:sequence" be used or is there any other keyword that needs to be used in place of it?