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 Jon Hanshew <jh...@visa.com> on 2007/11/02 16:29:19 UTC

Re: [Axis2] WS-policy client code

Rampart policy sample 01 demonstrates how to do a UT token.  Note that it
uses a "Signed Supporting Token", but since it uses a TransportBinding the
token doesn't get signed.



Feng Lu wrote:
> 
> Hi gurus,
> 
> I am wondering whether anybody have some sample codes for WS-policy
> support with Axis2? Here is our situation: we have a WS service WSDL
> (attached bellow) with WS-policy. We used Axis2 to generate the stub and I
> am able to see the setPolicy is called in the stub source code. However, I
> am not sure what I should do to write some client code with Axis2 to
> support the policy. Our WSDL policy is very simple, just with user name
> and password:
> - <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>
> 
> Any help is greatly appreciated!
> 
> Thanks
> 
> Frank
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 

-- 
View this message in context: http://www.nabble.com/-Axis2--WS-policy-client-code-tf4722125.html#a13549924
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