Johan,
the WSDD setting always overwrite the params set by the program (see javadoc
for "WSHandlerConstants.java"). We did this to enable the deployer of an Axis
application to overwrite/modify parameters without the need to change the
source code.
Regards, Werner
Johan Danforth schrieb:
Lo all,
I managed to dynamically set the username and the other properties
that normally goes into the client WSDD file. Again, many thanks to the nice
people in the WSS4J mailing list.
First I had to modify the client WSDD file from the tutorial and
comment out the properties. If I left them in there, I believe those values
from the wsdd-file will be used. So, the client_deploy.wsdd looks something
like this now:
<deployment xmlns="http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
<transport name="http"
pivot="java:org.apache.axis.transport.http.HTTPSender"/>
<globalConfiguration >
<requestFlow >
<handler type="java:org.apache.ws.axis.security.WSDoAllSender" >
<!-- parameters removed -->
</handler>
</requestFlow >
</globalConfiguration >
</deployment>
<snip>
