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 Anil VVNN <vv...@yahoo.com> on 2007/05/16 17:33:04 UTC
[Axis2] Can WSDL have multiple operations
Hi,
Can one WSDL file contain multiple operations i.e. multiple <wsdl:service>
tags with each having its own port and binding information.
Thanks.
--
View this message in context: http://www.nabble.com/-Axis2--Can-WSDL-have-multiple-operations-tf3765319.html#a10644233
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2] Can WSDL have multiple operations
Posted by Anil VVNN <vv...@yahoo.com>.
I'm experiencing trouble having multiple ports (wsdl:portType) with its own
binding (wsdl:binding) but only one service tag in a WSDL file.
Here is the error,
Operation Not found EPR is http://127.0.0.1:7001/abcService and WSA Action =
urn:Operation2
Anne Thomas Manes wrote:
>
> Although the schema says it's legal, that doesn't mean that products
> necessarily support it. I would avoid defining multiple services in a
> single WSDL file. Note that a single service can expose any number of
> ports, and each port can implement a different binding, exposing
> different portType operations.
>
> WSDL 2.0 imposed (IMO) an unreasonable restriction of one interface
> (the replacement for portType) per service.
>
> Anne
>
> On 5/16/07, Glen Mazza <gr...@verizon.net> wrote:
>> Ouch. I misread the schema. Thanks/Sorry.
>>
>> Glen
>>
>>
>> Am Donnerstag, den 17.05.2007, 08:10 +1200 schrieb Dennis Sosnoski:
>> > Actually it's unbounded:
>> >
>> > <complexType name="definitionsType">
>> > <complexContent>
>> > <extension base="wsdl:documented">
>> > <sequence>
>> > <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">
>> > <annotation>
>> > <documentation>to support extensibility elements
>> </documentation>
>> > </annotation>
>> > </any>
>> > </sequence>
>> > <attribute name="targetNamespace" type="uriReference"
>> use="optional"/>
>> > <attribute name="name" type="NMTOKEN" use="optional"/>
>> > </extension>
>> > </complexContent>
>> > </complexType>
>> >
>> > 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
>> > invalid.
>> >
>> > - Dennis
>> >
>> > Dennis M. Sosnoski
>> > SOA and Web Services in Java
>> > Axis2 Training and Consulting
>> > http://www.sosnoski.com - http://www.sosnoski.co.nz
>> > 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] http://www.w3.org/TR/wsdl#A4.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: axis-user-unsubscribe@ws.apache.org
>> > > For additional commands, e-mail: axis-user-help@ws.apache.org
>> > >
>> > >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> > For additional commands, e-mail: axis-user-help@ws.apache.org
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/-Axis2--Can-WSDL-have-multiple-operations-tf3765319.html#a10667088
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2] Can WSDL have multiple operations
Posted by Anne Thomas Manes <at...@gmail.com>.
Although the schema says it's legal, that doesn't mean that products
necessarily support it. I would avoid defining multiple services in a
single WSDL file. Note that a single service can expose any number of
ports, and each port can implement a different binding, exposing
different portType operations.
WSDL 2.0 imposed (IMO) an unreasonable restriction of one interface
(the replacement for portType) per service.
Anne
On 5/16/07, Glen Mazza <gr...@verizon.net> wrote:
> Ouch. I misread the schema. Thanks/Sorry.
>
> Glen
>
>
> Am Donnerstag, den 17.05.2007, 08:10 +1200 schrieb Dennis Sosnoski:
> > Actually it's unbounded:
> >
> > <complexType name="definitionsType">
> > <complexContent>
> > <extension base="wsdl:documented">
> > <sequence>
> > <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">
> > <annotation>
> > <documentation>to support extensibility elements </documentation>
> > </annotation>
> > </any>
> > </sequence>
> > <attribute name="targetNamespace" type="uriReference" use="optional"/>
> > <attribute name="name" type="NMTOKEN" use="optional"/>
> > </extension>
> > </complexContent>
> > </complexType>
> >
> > 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
> > invalid.
> >
> > - Dennis
> >
> > Dennis M. Sosnoski
> > SOA and Web Services in Java
> > Axis2 Training and Consulting
> > http://www.sosnoski.com - http://www.sosnoski.co.nz
> > 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] http://www.w3.org/TR/wsdl#A4.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: axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2] Can WSDL have multiple operations
Posted by Glen Mazza <gr...@verizon.net>.
Ouch. I misread the schema. Thanks/Sorry.
Glen
Am Donnerstag, den 17.05.2007, 08:10 +1200 schrieb Dennis Sosnoski:
> Actually it's unbounded:
>
> <complexType name="definitionsType">
> <complexContent>
> <extension base="wsdl:documented">
> <sequence>
> <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">
> <annotation>
> <documentation>to support extensibility elements </documentation>
> </annotation>
> </any>
> </sequence>
> <attribute name="targetNamespace" type="uriReference" use="optional"/>
> <attribute name="name" type="NMTOKEN" use="optional"/>
> </extension>
> </complexContent>
> </complexType>
>
> 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
> invalid.
>
> - Dennis
>
> Dennis M. Sosnoski
> SOA and Web Services in Java
> Axis2 Training and Consulting
> http://www.sosnoski.com - http://www.sosnoski.co.nz
> 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] http://www.w3.org/TR/wsdl#A4.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: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2] Can WSDL have multiple operations
Posted by Dennis Sosnoski <dm...@sosnoski.com>.
Actually it's unbounded:
<complexType name="definitionsType">
<complexContent>
<extension base="wsdl:documented">
<sequence>
<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">
<annotation>
<documentation>to support extensibility elements </documentation>
</annotation>
</any>
</sequence>
<attribute name="targetNamespace" type="uriReference" use="optional"/>
<attribute name="name" type="NMTOKEN" use="optional"/>
</extension>
</complexContent>
</complexType>
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
invalid.
- Dennis
Dennis M. Sosnoski
SOA and Web Services in Java
Axis2 Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
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] http://www.w3.org/TR/wsdl#A4.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: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: [Axis2] Can WSDL have multiple operations
Posted by Glen Mazza <gr...@verizon.net>.
No, according to the schema[1], the maxOccurs of wsdl:service is 1.
Glen
[1] http://www.w3.org/TR/wsdl#A4.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: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org