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 Johny Edu <jo...@yahoo.com> on 2007/03/30 09:27:57 UTC

Policy References in services.xml

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.xml but
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" 
                URI="http://localhost:53307/policy.xml#UTOverTransport" />
  </service>
   
  Is that achievable in axis2 ?
Thanks.

 
---------------------------------
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.

Re: Policy References in services.xml

Posted by Davanum Srinivas <da...@gmail.com>.
Next questio :) How does one do this in 1.2 final? :)

On 3/30/07, Sanka Samaranayake <ss...@gmail.com> wrote:
> No.
>
>  This is a post 1.2 goal in which we need to figure out a policy
> registration / retrieval mechanism for Axis2.
>
>  Thanks,
>  Sanka
>
>
> On 3/30/07, Davanum Srinivas <da...@gmail.com> wrote:
> >
> > Sanka,
> >
> > Is this planned for 1.2 final release?
> >
> > -- dims
> >
> > On 3/30/07, Sanka Samaranayake <ss...@gmail.com> wrote:
> > > This feature is not available for Axis2 at the moment.
> > >
> > >  Best,
> > >  Sanka
> > >
> > >
> > > On 3/30/07, Johny Edu <jo...@yahoo.com> wrote:
> > > >
> > > > 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.xml
> but
> > > > 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 "
> > > >
> > > URI="http://localhost:53307/policy.xml#UTOverTransport
> " />
> > > > </service>
> > > >
> > > > Is that achievable in axis2 ?
> > > > Thanks.
> > > >
> > > > ________________________________
> > > Need Mail bonding?
> > > > Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Sanka Samaranayake
> > > WSO2 Inc.
> > >
> > > http://sankas.blogspot.com/
> > >  http://www.wso2.org/
> >
> >
> > --
> > Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
>
>
> --
>
> Sanka Samaranayake
> WSO2 Inc.
>
> http://sankas.blogspot.com/
> http://www.wso2.org/


-- 
Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Policy References in services.xml

Posted by Sanka Samaranayake <ss...@gmail.com>.
No.

This is a post 1.2 goal in which we need to figure out a policy registration
/ retrieval mechanism for Axis2.

Thanks,
Sanka

On 3/30/07, Davanum Srinivas <da...@gmail.com> wrote:
>
> Sanka,
>
> Is this planned for 1.2 final release?
>
> -- dims
>
> On 3/30/07, Sanka Samaranayake <ss...@gmail.com> wrote:
> > This feature is not available for Axis2 at the moment.
> >
> >  Best,
> >  Sanka
> >
> >
> > On 3/30/07, Johny Edu <jo...@yahoo.com> wrote:
> > >
> > > 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"
> > >
> > URI="http://localhost:53307/policy.xml#UTOverTransport " />
> > > </service>
> > >
> > > Is that achievable in axis2 ?
> > > Thanks.
> > >
> > > ________________________________
> > Need Mail bonding?
> > > Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
> > >
> > >
> >
> >
> >
> > --
> > Sanka Samaranayake
> > WSO2 Inc.
> >
> > http://sankas.blogspot.com/
> >  http://www.wso2.org/
>
>
> --
> Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>


-- 
Sanka Samaranayake
WSO2 Inc.

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

Re: Policy References in services.xml

Posted by Davanum Srinivas <da...@gmail.com>.
Sanka,

Is this planned for 1.2 final release?

-- dims

On 3/30/07, Sanka Samaranayake <ss...@gmail.com> wrote:
> This feature is not available for Axis2 at the moment.
>
>  Best,
>  Sanka
>
>
> On 3/30/07, Johny Edu <jo...@yahoo.com> wrote:
> >
> > 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.xml but
> > 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"
> >
> URI="http://localhost:53307/policy.xml#UTOverTransport " />
> > </service>
> >
> > Is that achievable in axis2 ?
> > Thanks.
> >
> > ________________________________
> Need Mail bonding?
> > Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
> >
> >
>
>
>
> --
> Sanka Samaranayake
> WSO2 Inc.
>
> http://sankas.blogspot.com/
>  http://www.wso2.org/


-- 
Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Policy References in services.xml

Posted by Sanka Samaranayake <ss...@gmail.com>.
This feature is not available for Axis2 at the moment.

Best,
Sanka

On 3/30/07, Johny Edu <jo...@yahoo.com> wrote:
>
> 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.xml but
> 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"
>                 URI="http://localhost:53307/policy.xml#UTOverTransport" />
> </service>
>
> Is that achievable in axis2 ?
> Thanks.
>
> ------------------------------
> Need Mail bonding?
> Go to the Yahoo! Mail Q&A<http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396546091>for great
> tips from Yahoo! Answers<http://answers.yahoo.com/dir/index;_ylc=X3oDMTFvbGNhMGE3BF9TAzM5NjU0NTEwOARfcwMzOTY1NDUxMDMEc2VjA21haWxfdGFnbGluZQRzbGsDbWFpbF90YWcx?link=ask&sid=396546091>users.
>
>


-- 
Sanka Samaranayake
WSO2 Inc.

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