RE: AXIS2 WS-Security

2008-08-15 Thread Deep455

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.getProperty());

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]



Re: AXIS2 WS-Security

2008-08-14 Thread Deep455

Thanks for the information.
Iam not sure whether rampart is used on the webservice server side. I want
to consume these services so is it possible for me to set the security token
w/o using rampart.

Incase rampart has to be used, 
my client is java based(not a web application). I have generated the client
stubs using wsdl2java from Axis2-1.3. Please let me know what do i need to
do?

Regards
Pradeep


Nunny wrote:
> 
> You can you Apache Rampart [1], Axis2 security module.
> 
> These two tutorials may also help.
> http://www.wso2.org/library/3190
> http://www.wso2.org/library/3415
> 
> thanks,
> nandana
> 
> [1] -  http://ws.apache.org/rampart/
> 
> 
> 
> On Thu, Aug 14, 2008 at 3:22 PM, Deep455 <[EMAIL PROTECTED]> wrote:
> 
>>
>> I have created a client for a web service(with ws-securtiy). How do I
>> pass
>> the security token in the soap header?
>> --
>> View this message in context:
>> http://www.nabble.com/AXIS2-WS-Security-tp18978756p18978756.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]
>>
>>
> 
> 
> -- 
> Nandana Mihindukulasooriya
> WSO2 inc.
> 
> http://nandana83.blogspot.com/
> http://www.wso2.org
> 
> 

-- 
View this message in context: 
http://www.nabble.com/AXIS2-WS-Security-tp18978756p18979919.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]



AXIS2 WS-Security

2008-08-14 Thread Deep455

I have created a client for a web service(with ws-securtiy). How do I pass
the security token in the soap header?
-- 
View this message in context: 
http://www.nabble.com/AXIS2-WS-Security-tp18978756p18978756.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]