Hi All,
The action URI's mentioned in the original description of AXIS2-53 are
from the WS-Trust spec and they are for different BINDINGS. Where the
same RequestSecurityToken operation is being used in different
wsdl:bindings. And we will not have to specify those action values in
the service.xml w.r.t. an operation, since we have the Web Services
Addressing 1.0 - WSDL Binding [1] according to which the information
can be made available in the wsdl.
BUT....
Section "3.1 Explicit Association" from [1] says that in the case of
WSDL 1.1, "wsa:Action" attributes are associated with the operation in
the context of the "wsdl:portType". If that is the case how can we
specify the different wsa:Action values for different "bindings "
I think we should have the wsa:Action attributes associated with the
wsdl:input and wsdl:output elements of each of the wsdl:operation
elements in a wsdl:binding element.
Example:
Note that the same wsdl:portType (SecurityTokenService) is used in
both bindings and the wsa:Actions used are different.
<wsdl:definitions
targetNamespace="http://schemas.xmlsoap.org/ws/2005/02/trust/wsdl"
xmlns:tns="http://schemas.xmlsoap.org/ws/2005/02/trust/wsdl"
xmlns:wst="http://schemas.xmlsoap.org/ws/2005/02/trust"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/">
....
....
....
<wsdl:portType name="SecurityTokenService">
<wsdl:operation name="RequestSecurityToken">
<wsdl:input message="tns:RequestSecurityTokenMsg"/>
<wsdl:output message="tns:RequestSecurityTokenResponseMsg"/>
</wsdl:operation>
<wsdl:operation name="RequestSecurityToken2">
<wsdl:input message="tns:RequestSecurityTokenMsg"/>
<wsdl:output
message="tns:RequestSecurityTokenResponseCollectionMsg"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="SecurityTokenServiceIssuanceBinding"
type="tns:SecurityTokenService">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="RequestSecurityToken">
<soap:operation soapAction="#RST"/>
<wsdl:input
wsa:Action="http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Issue">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output
wsa:Action="http://schemas.xmlsoap.org/ws/2005/02/trust/RSTR/Issue">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:binding name="SecurityTokenServiceValidationBinding"
type="tns:SecurityTokenService">
<soap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="RequestSecurityToken">
<soap:operation soapAction="#RST"/>
<wsdl:input
wsa:Action="http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Validate">
<soap:body use="literal"/>
</wsdl:input>
<wsdl:output
wsa:Action="http://schemas.xmlsoap.org/ws/2005/02/trust/RST/Validate">
<soap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:definitions>
Please correct me if I have missed something :-)
Ref:
1.) Web Services Addressing 1.0 - WSDL Binding
http://www.w3.org/TR/2005/WD-ws-addr-wsdl-20050413/#actioninwsdl
Best Regards
Ruchith
On 7/8/05, Srinath Perera <[EMAIL PROTECTED]> wrote:
> As far as I understood
> http://www.w3.org/TR/2005/WD-ws-addr-wsdl-20050413/#actioninwsdl
> talks about only a one SOAP action for a WSDL Operation, so I belive
> following is good enough
>
> <operation name=".." action=".." >
> ................
> </operation>
>
> Chatura are we supporting getWSAAction() or getAction() in the WOM
> Message (or it's equvelent), I do looked, but do not found it yet!
>
> Thanks
> Srinath
>
> On 7/7/05, Sanjiva Weerawarana <[EMAIL PROTECTED]> wrote:
> > On Thu, 2005-07-07 at 11:42 +0600, Srinath Perera wrote:
> > > How does operations and WSA:action is supported in the WSDL1.1/WSDL 2.0 ?
> > >
> > > My understanding is more than one action for a operation is not
> > > supported by WSDL and if that is case we can just do with one Action.
> > > So I purpose
> > >
> > > <operation name="foo" action="bar" ...>
> > > ...........
> > > </operation>
> > >
> > > thoughts?
> >
> > Please see the WS-Addressing binding document:
> > http://www.w3.org/TR/2005/WD-ws-addr-wsdl-20050413/
> >
> > Sanjiva.
> >
> >
>