views:

117

answers:

0

I am trying to connect to a web service that has Integrated Windows Authentication with apache axis. I have set the call user name and password like so:

    _call.setUsername( "user" );
    _call.setPassword( "password" );

I have also tried switching to the apache http client using this as the client-config.wsdd:

<?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"&gt;

<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>

However, I keep getting this:

You do not have permission to view this directory or page using the credentials that you supplied because your Web browser is sending a WWW-Authenticate header field that the Web server is not configured to accept.

I am sure the credentials I am supplying are correct.

Does anyone know how to make this work?