Does anyone know how to set up handlers and apply a username/password header to a SOAP message using an Axis2 based client?
For instance in Axis 1 I can do the following:
Is it possible to do something similar with the Axis2 / Rampart API? I can only find examples that retrieve the username/password information from XML based descriptors.
Joined: Mar 22, 2005
I'm guessing that there is a way to use Rampart programmatically instead of declaratively, but I've never felt the need to do that. Is there a particular reason you'd like to avoid using deployment descriptors? [ May 18, 2007: Message edited by: Ulf Dittmer ]
I have a front-end website which consumes the services so when a user inputs a username and password it is saved in a session bean and bundled with each request. Hence the 'user.getUserName()' from the snippet of code above.
Might there be a way of using descriptors for multiple users?
Joined: Mar 05, 2007
I'm attempting to use the following (based on the example 11 provided with Rampart 1.1), with no joy.
I can't find much information about this, although I'm actually receiving the same error when sending non-authenticated messages, so the problem may not be related directly to Rampart. (I originally had Axis2-1.2 running but I had to roll back to Axis2-1.1.1 due to Rampart compatibility).
[ May 21, 2007: Message edited by: Alan Sunley ] [ May 21, 2007: Message edited by: Alan Sunley ]
Joined: Jul 01, 2004
You can find the answer from the following 2 links.