You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Venkatesh Prasad Ranganath <co...@yahoo.com> on 2004/05/25 02:03:00 UTC

A question about WSDL file

Hi,

I am looking at test/wsdl/datatypes/DataTypes.wsdl available in the distribution of axis-1.1.  Following is the snippet 
towards the ending of the <types> section of the wsdl.

       <s:element name="GetOrdersResponse">
         <s:complexType>
           <s:sequence>
             <s:element minOccurs="0" maxOccurs="1" name="GetOrdersResult" type="s0:ArrayOfOrder" />
           </s:sequence>
         </s:complexType>
       </s:element>

       <s:complexType name="ArrayOfOrder">
         <s:sequence>
           <s:element minOccurs="0" maxOccurs="unbounded" name="Order" nillable="true" type="s0:Order" />
         </s:sequence>
       </s:complexType>

       <s:element name="string" nillable="true" type="s:string" />
       <s:element name="ArrayOfInt" nillable="true" type="s0:ArrayOfInt" />
       <s:element name="Mode" type="s0:Mode" />
       <s:element name="Order" nillable="true" type="s0:Order" />
       <s:element name="ArrayOfOrder" nillable="true" type="s0:ArrayOfOrder" />

     </s:schema>
   </types>

The interesting part is the last 5 element declaration in the schema.  These declarations indicate that these elements can 
occur in an instance of this schema.  However, none of these elements are used to in the rest of the wsdl document.  Rather 
only the complex types declared earlier on are used.  So, are these declarations redundant?  If not, what is the purpose of 
these declarations?

waiting for reply,

-- 

Venkatesh Prasad Ranganath,
Dept. Computing and Information Science,
Kansas State University, US.
web: http://www.cis.ksu.edu/~rvprasad