Hi,

I'm using Axis 1.4.1 with Rampart 1.4.

I've got a service (see attachment) which need to be secured with a
UsernameToken and a DigestPassword. For the time been I don't need
HTTPS.

On the client side, I've generated the stub with the maven2 plugging
(axis2-wsdl2code:wsdl2code). Here is the client code:

ConfigurationContext ctx =
ConfigurationContextFactory.createConfigurationContextFromFileSystem("/repo",null);
PointServiceStub stub = new PointServiceStub(ctx);
stub._getServiceClient().engageModule("rampart");
Options options = stub._getServiceClient().getOptions();
options.setUserName("toto");
options.setPassword("test");

The problem is the client send a soap security header with a
PasswordText.

How can I fix this and enforce on the server side to use DigestPassord ?



Another thing the client is a webapp, how can I load the rampart module
without specifying a repository and without overriding the axi2 config
file? is there a way to load it from the classpath like on the server
side?


Regards,
Ced.
-- 
Cedric Bompart <[EMAIL PROTECTED]>
Echovox

Attachment: service.xml
Description: XML document

Reply via email to