• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

arrayType declarations

 
Somnath Jamdar
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone please provide correct/incorrect WSDL declarations for the following claims?

"In a DESCRIPTION, array declarations MUST NOT extend or restrict the soapenc:Array type. "

"In a DESCRIPTION, array declarations MUST NOT use wsdl:arrayType attribute in the type declaration. "
 
Somnath Jamdar
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think it is given in RMH book in the following lines.


<xsd:element name="MyArray2" type="tns:MyArray2Type"/>
<xsd:complexType name="MyArray2Type"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" >
<xsd:complexContent>
<xsd:restriction base="soapenc:Array">
<xsd:sequence>
<xsd:element name="x" type="xsd:string"
minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute ref="soapenc:arrayType"
wsdl:arrayType="tns:MyArray2Type[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>

Items marked in bold are non-conformance to above claims.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic