axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Venkatesh Prasad Ranganath <comfortably007numb-pyt...@yahoo.com>
Subject A question about WSDL file
Date Tue, 25 May 2004 00:03:00 GMT
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


Mime
View raw message