Yes, you can do this programatically by using the policy based approach to 
implement Rampart enabled services. There's a good tutorial on the topic at 
[1]. Cheers.

1 - http://wso2.org/library/3190

Regards
Sanjay

>-----Original Message-----
>From: Deep455 [mailto:[EMAIL PROTECTED]
>Sent: 15 August 2008 09:09
>To: [email protected]
>Subject: RE: AXIS2 WS-Security
>
>
>Thanks Sanjay
>Iam able to run the stanalone client using rampart libraries
>and mar file.
>Currently Iam using axis2 configuration file for username and password.
>Can I do this programatically with out using teh configuration file ?
>I have used outflowconfiguration below and its working fine.
>OutflowConfiguration ofc = new OutflowConfiguration();
>                        ofc.setActionItems("UsernameToken");
>                        ofc.setPasswordType(WSConstants.PW_TEXT);
>                        ofc.setUser("UserName");
>
>
>options.setProperty(WSSHandlerConstants.OUTFLOW_SECURITY,ofc.ge
>tProperty());
>
>                        PWCBHandler myCallback=new PWCBHandler();
>                        myCallback.setUser("userName");
>                        myCallback.setPass("Password");
>
>options.setProperty(WSHandlerConstants.PW_CALLBACK_REF, myCallback);
>
>BUt Outflowconfiguration seems to be depracted with rampart 1.3.
>
>How do I do this using RampartConfig class?
>
>
>
>
>--
>View this message in context:
>http://www.nabble.com/AXIS2-WS-Security-tp18978756p18995269.html
>Sent from the Axis - User mailing list archive at Nabble.com.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to