Re: Axis2(1.4) + Rampart 1.4 usage
Nandana, Would you please help post some URL links which explain how to configure WS Security Policy 1.2 in order to use PasswordDigest with Axis2(1.4) + Rampart 1.4? Many thanks! -- View this message in context: http://www.nabble.com/Axis2%281.4%29-%2B-Rampart-1.4-throws-exception-tp17877253p22037619.html Sent from the Axis - User mailing list archive at Nabble.com.
Re: Axis2(1.4) + Rampart 1.4 usage
Can anyone help confirm that I can not do "PasswordDigest" with Axis2 using policy on the client side? Thanks! -- View this message in context: http://www.nabble.com/Axis2%281.4%29-%2B-Rampart-1.4-throws-exception-tp17877253p21964907.html Sent from the Axis - User mailing list archive at Nabble.com.
Re: Axis2(1.4) + Rampart 1.4 throws exception
3) If I understand correctly, I can only do password text with policy as below: http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText";>password What options do I have if I want to do password digest with policy as below: http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordDigest"; xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";>8d8ItLyFqWeBesi4xFGaHjUTj3Q= -- View this message in context: http://www.nabble.com/Axis2%281.4%29-%2B-Rampart-1.4-throws-exception-tp17877253p18011917.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(1.4) + Rampart 1.4 throws exception
1) Why do I have to put an axis2.xml in the repo path when I am trying to use policy.xml? Do I have to define both even if I just want to use policy.xml instead? 2) If I have to provide both (axis2.xml and policy.xml) to make Axis2(1.4)+Rampart1.4 work for policy, where is the place I should specify my password callback class? In both places as well? axis2.xml UsernameToken Timestamp xyz ws.security.PWHandlerClient policy.xml http://ws.apache.org/rampart/policy";> xyz ws.security.PWCBHandler -- View this message in context: http://www.nabble.com/Axis2%281.4%29-%2B-Rampart-1.4-throws-exception-tp17877253p18011293.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(1.4) + Rampart 1.4 throws exception
I was trying to use Axis2 (1.4) + Rampart 1.4, with a policy file, and I got the following exception: Exception in thread "main" org.apache.axis2.phaseresolver.PhaseException: Did not find the desired phase 'Security' while deploying handler 'PolicyBasedSecurityInHandler'. at org.apache.axis2.phaseresolver.PhaseHolder.addHandler(PhaseHolder.java:75) at org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToFlow(PhaseResolver.java:68) at org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:104) at org.apache.axis2.phaseresolver.PhaseResolver.engageModuleToOperation(PhaseResolver.java:110) at org.apache.axis2.description.AxisOperation.onEngage(AxisOperation.java:158) at org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:490) at org.apache.axis2.description.AxisService.onEngage(AxisService.java:785) at org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:490) at org.apache.axis2.description.AxisServiceGroup.onEngage(AxisServiceGroup.java:134) at org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:490) at org.apache.axis2.description.AxisDescription.engageModule(AxisDescription.java:453) at org.apache.axis2.engine.AxisConfiguration.addServiceGroup(AxisConfiguration.java:323) at org.apache.axis2.engine.AxisConfiguration.addService(AxisConfiguration.java:293) at org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:175) at org.apache.axis2.client.ServiceClient.(ServiceClient.java:143) at ws.landslide.security.Axis2ClientWssePolicy.main(Axis2ClientWssePolicy.java:29) at these lines of code on my client side: String args1 = "C:/java/eclipse/workspace/Axis2Client"; ConfigurationContext ctx = ConfigurationContextFactory.createConfigurationContextFromFileSystem(args1, null); ServiceClient client = new ServiceClient(ctx, null); It seems that the second parameter of "ConfigurationContextFactory.createConfigurationContextFromFileSystem(args1, null);" cannot be set null as it is shown here. The exception is thrown long before the code reaches the following 2 lines: String args2 = "policy.xml"; options.setProperty(RampartMessageData.KEY_RAMPART_POLICY, loadPolicy(args2)); Please advise how to resolve this error. Thanks! -- View this message in context: http://www.nabble.com/Axis2%281.4%29-%2B-Rampart-1.4-throws-exception-tp17877253p17877253.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 client hangs with multiple requests in one session
Yes, doing the following after each AxisFault would help me prevent the Axis2 client to hang: client.cleanupTransport(); and my server side still gets all the preset cookie values. -- View this message in context: http://www.nabble.com/Axis2-client-hangs-with-multiple-requests-in-one-session-tp15514156p15529268.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 client hangs with multiple requests in one session
1) Yes, the Axis2 client would hang on the 3rd call if the first 2 requests get an AxisFault when I use: options.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, true); options.setCallTransportCleanup(true); 2) The Axis2 client would hang on the 3rd call no matter what when I use: options.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, true); 3) The Axis2 client does not work in the way I need when I use: options.setManageSession(true); 4) The Axis2 client is expected to maintain the session correctly, or it is a bug in the code. 5) Can you please provide some example code about how to customize my HttpConnectionManager to help Axis2 client maintain all the info about the session? Thanks! -- View this message in context: http://www.nabble.com/Axis2-client-hangs-with-multiple-requests-in-one-session-tp15514156p15527041.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 client hangs with multiple requests in one session
Thanks, Michele! The combination of these 2 lines works for multiple requests/responses: options.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, true); options.setCallTransportCleanup(true); This line only tracks the cookie "JSESSIONID" but nothing else: options.setManageSession(true); -- View this message in context: http://www.nabble.com/Axis2-client-hangs-with-multiple-requests-in-one-session-tp15514156p15517229.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 client hangs with multiple requests in one session
When I use Axis2 1.3 API for my SOAP client as below: Options options = new Options(); options.setManageSession(true); client.setOptions(options); I can only get back the cookie of “JSESSIONID” on my server side for all the subsequent requests and I would lose the rest of all other cookies set by my server side code. When I use Axis2 1.3 API for my SOAP client as below: Options options = new Options(); options.setProperty(HTTPConstants.REUSE_HTTP_CLIENT, true); client.setOptions(options); I can get back all the cookies set by my server side code, including “JSESSIONID”. However, the client side code would hang forever after looping into the 3rd request. What can I do in this case as I want to have all my cookies passed back from the client side to the server side for multiple requests of the same HTTP session? -- View this message in context: http://www.nabble.com/Axis2-client-hangs-with-multiple-requests-in-one-session-tp15514156p15514156.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]