I tried switching to Axis 1.3, but no difference. I think the username
and pass are actually used by the CommonsHttpSender but they do not
appear in the HTTP message in the following way:
Authorization: Basic Z3Vlc3Q6Z3Vlc3Q=
Credentials: xyz:sakhs89z...
This part is missing as soons as i switch to CommonsHttpSender. How is
this supposed to work?
Thanks for any help!
Michael
Hi!
I have a WS that uses HTTP authentication. I want to use digest auth.
Right now i started with the Basic HTTP auth and wanted to switch to
the CommonsHTTPSender so i can use digest. I configured it with the
wsdd below. However, as soon as i switch to it, the no username and
password are in the HTTP message (checked with ethereal).
<?xml version="1.0" encoding="UTF-8"?>
<deployment name="commonsHTTPConfig"
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.CommonsHTTPSender" />
<transport name="local"
pivot="java:org.apache.axis.transport.local.LocalSender" />
<transport name="java"
pivot="java:org.apache.axis.transport.java.JavaSender" />
</deployment>
my client code looks like:
RMWS service = new RMWSLocator(new
org.apache.axis.configuration.FileProvider("test.wsdd"));
//RMWS service = new RMWSLocator();
try {
RMWSPortType c = service.getRMWS();
RMWSStub axisPort = (RMWSStub)c;
axisPort.setUsername("abc");
axisPort.setPassword("xyz");
....
Any idea why the user and pass is not set. Also it automatically
chooses Basic auth. Can i switch to Digest explicitly?
Thanks!
Michael