axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dennis Sosnoski <>
Subject Re: [Axis2] Can WSDL have multiple operations
Date Wed, 16 May 2007 20:10:12 GMT
Actually it's unbounded:

   <complexType name="definitionsType">
         <extension base="wsdl:documented">
               <element ref="wsdl:import" minOccurs="0" maxOccurs="unbounded"/>
               <element ref="wsdl:types" minOccurs="0"/>
               <element ref="wsdl:message" minOccurs="0" maxOccurs="unbounded"/>
               <element ref="wsdl:portType" minOccurs="0" maxOccurs="unbounded"/>
               <element ref="wsdl:binding" minOccurs="0" maxOccurs="unbounded"/>
               <element ref="wsdl:service" minOccurs="0" maxOccurs="unbounded"/>
               <any namespace="##other" minOccurs="0" maxOccurs="unbounded">
                     <documentation>to support extensibility elements </documentation>
            <attribute name="targetNamespace" type="uriReference" use="optional"/>
            <attribute name="name" type="NMTOKEN" use="optional"/>

So the answer is yes, the WSDL can contain multiple instances of 
anything except the <wsdl:types> element. Note that the repeated 
elements need to be in the correct order, though - the types element, 
then all the messages, then all the portTypes, etc. I've seen some 
schema that had repeated elements all jumbled together, and these are 

  - Dennis

Dennis M. Sosnoski
SOA and Web Services in Java
Axis2 Training and Consulting -
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117

Glen Mazza wrote:
> No, according to the schema[1], the maxOccurs of wsdl:service is 1.
> Glen
> [1]
> Am Mittwoch, den 16.05.2007, 08:33 -0700 schrieb Anil VVNN:
>> Hi,
>> Can one WSDL file contain multiple operations i.e. multiple <wsdl:service>
>> tags with each having its own port and binding information. 
>> Thanks.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message