axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sanka Samaranayake" <ssa...@gmail.com>
Subject Re: [Axis2] using policy references in services.xml
Date Mon, 02 Apr 2007 15:03:23 GMT
If you are attaching a Policy as a PolicyReference, the actual policy should
either be a declared in the services.xml or the reference should be resolved
to a actual URL.

Thanks,
Sanka

On 4/2/07, Sanka Samaranayake <ssanka@gmail.com> wrote:
>
> This is available at the moment. AxisService should contain those policies
> that are declared at the service scope in the services.xml ( in the
> AxisOperation if the policy is declared in the operation scope .. etc.)
>
> Thanks,
> Sanka
>
> On 4/2/07, Sanjiva Weerawarana <sanjiva@opensource.lk> wrote:
> >
> > I think we need to do the attachment work for services.xml too ... I'm
> > definitely +1 for it.
> >
> > Sanka?
> >
> > Sanjiva.
> >
> > Saminda Abeyruwan wrote:
> > > Forwared with Axis2 prefix
> > >
> > >
> > > Hi All,
> > > I need to use policy references in services.xml,
> > > meaning that i do not need the actual policy info but a reference to
> > it,
> > > so if i want to change the policy, i should not deal with services.xmlbut
> > > rather with the resource behind that uri, for example:
> > >
> > > <service >
> > > <operation name="echo">
> > >   <messageReceiver
> > > class="org.apache.axis2.rpc.receivers.RPCMessageReceiver "/>
> > > </operation>
> > > <parameter name="ServiceClass"
> > > locked="false">
> > org.apache.rampart.samples.policy.sample01.SimpleService</parameter>
> > >
> > > <module ref="rampart" />
> > > <module ref="addressing" />
> > >
> > > <wsp:PolicyReference wsu:Id="UTOverTransport"
> > >                 xmlns:wsu="
> > >
> > http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd
> > "
> > >                 xmlns:wsp="
> > http://schemas.xmlsoap.org/ws/2004/09/policy
> > > <http://schemas.xmlsoap.org/ws/2004/09/policy >"
> > >                 URI="http://localhost:53307/policy.xml#UTOverTransport"
> > />
> > > </service>
> > >
> > > Is that achievable in axis2 ?
> > > Thanks.
> > >
> > > -
> > >
> > > --
> > > Saminda Abeyruwan
> > >
> > > Software Engineer
> > > WSO2 Inc. - www.wso2.org <http://www.wso2.org >
> >
> > --
> > Sanjiva Weerawarana, Ph.D.
> > Founder & Director; Lanka Software Foundation; http://www.opensource.lk/
> > Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/
> > Director; Open Source Initiative; http://www.opensource.org/
> > Member; Apache Software Foundation; http://www.apache.org/
> > Visiting Lecturer; University of Moratuwa; http://www.cse.mrt.ac.lk/
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-dev-help@ws.apache.org
> >
> >
>
>
> --
> Sanka Samaranayake
> WSO2 Inc.
>
> http://sankas.blogspot.com/
> http://www.wso2.org/




-- 
Sanka Samaranayake
WSO2 Inc.

http://sankas.blogspot.com/
http://www.wso2.org/

Mime
View raw message