You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by Anne Thomas Manes <at...@gmail.com> on 2007/11/01 02:25:45 UTC

Re: [Axis2] WS-policy client support

That's a proprietary policy assertion language. It's supported only by
BEA products. Talk to BEA and convince them to add support for the
standard OASIS WS-SecurityPolicy.

Anne

On 10/31/07, Feng Lu <lu...@yahoo.com> wrote:
>
> Hello friends,
>
> I am wondering whether Axis2 support WS-policy client? My WSDL server is
> Weblogic and the WSDL has following WS-policy. I am not sure whether Axis2
> will be able to handle WS-policy in such case. If it does, could anybody let
> me know how to implement the client side support for this? Any special
> handling in the stub genration?
>
>
>
> - <wsp:Policy s0:Id="Auth.xml">
>
>
> - <wssp:Identity
> xmlns:wssp="http://www.bea.com/wls90/security/policy">
>
>
> - <wssp:SupportedTokens>
>
>
> - <wssp:SecurityToken
> TokenType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#UsernameToken">
>
>
>   <wssp:UsePassword
> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"
> />
>   </wssp:SecurityToken>
>   </wssp:SupportedTokens>
>   </wssp:Identity>
>   </wsp:Policy>
>
> Thanks a lot for your help!
>
> Frank
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com

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


Re: [Axis2] WS-policy client support

Posted by Sanka Samaranayke <ss...@gmail.com>.
Hi,

One work around would be to use the ServiceClient instead of using a generated stub and attach the equivalent standard policy of that proprietary policy expreesion. 

You may also have to set username and password in options.

e.g.

Options options = serviceClient.getOptions();
options.setUsername(..);
optoins.setPassword(..);

HTH,
Sanka



Anne Thomas Manes wrote:
> That's a proprietary policy assertion language. It's supported only by
> BEA products. Talk to BEA and convince them to add support for the
> standard OASIS WS-SecurityPolicy.
>
> Anne
>
> On 10/31/07, Feng Lu <lu...@yahoo.com> wrote:
>   
>> Hello friends,
>>
>> I am wondering whether Axis2 support WS-policy client? My WSDL server is
>> Weblogic and the WSDL has following WS-policy. I am not sure whether Axis2
>> will be able to handle WS-policy in such case. If it does, could anybody let
>> me know how to implement the client side support for this? Any special
>> handling in the stub genration?
>>
>>
>>
>> - <wsp:Policy s0:Id="Auth.xml">
>>
>>
>> - <wssp:Identity
>> xmlns:wssp="http://www.bea.com/wls90/security/policy">
>>
>>
>> - <wssp:SupportedTokens>
>>
>>
>> - <wssp:SecurityToken
>> TokenType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#UsernameToken">
>>
>>
>>   <wssp:UsePassword
>> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"
>> />
>>   </wssp:SecurityToken>
>>   </wssp:SupportedTokens>
>>   </wssp:Identity>
>>   </wsp:Policy>
>>
>> Thanks a lot for your help!
>>
>> Frank
>> __________________________________________________
>> Do You Yahoo!?
>> Tired of spam? Yahoo! Mail has the best spam protection around
>> http://mail.yahoo.com
>>     
>
> ---------------------------------------------------------------------
> 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://www.bloglines.com/blog/sanka
http://www.wso2.org/


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


Re: [Axis2] WS-policy client support

Posted by Sanjiva Weerawarana <sa...@opensource.lk>.
And pretty darned sneaky of them to gen a "wssp" prefix for a private 
namespace. Of course its fine but still sneaky.

Sanjiva.

Anne Thomas Manes wrote:
> That's a proprietary policy assertion language. It's supported only by
> BEA products. Talk to BEA and convince them to add support for the
> standard OASIS WS-SecurityPolicy.
> 
> Anne
> 
> On 10/31/07, Feng Lu <lu...@yahoo.com> wrote:
>> Hello friends,
>>
>> I am wondering whether Axis2 support WS-policy client? My WSDL server is
>> Weblogic and the WSDL has following WS-policy. I am not sure whether Axis2
>> will be able to handle WS-policy in such case. If it does, could anybody let
>> me know how to implement the client side support for this? Any special
>> handling in the stub genration?
>>
>>
>>
>> - <wsp:Policy s0:Id="Auth.xml">
>>
>>
>> - <wssp:Identity
>> xmlns:wssp="http://www.bea.com/wls90/security/policy">
>>
>>
>> - <wssp:SupportedTokens>
>>
>>
>> - <wssp:SecurityToken
>> TokenType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#UsernameToken">
>>
>>
>>   <wssp:UsePassword
>> Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText"
>> />
>>   </wssp:SecurityToken>
>>   </wssp:SupportedTokens>
>>   </wssp:Identity>
>>   </wsp:Policy>
>>
>> Thanks a lot for your help!
>>
>> Frank
>> __________________________________________________
>> Do You Yahoo!?
>> Tired of spam? Yahoo! Mail has the best spam protection around
>> http://mail.yahoo.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-dev-help@ws.apache.org
> 
> 

-- 
Sanjiva Weerawarana, Ph.D.
Founder & Director; Lanka Software Foundation; http://www.opensource.lk/
Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/
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