I tried the following and I still get
a 401 error:
MyService
myService = new MyServiceLocator();
URL serviceUrl
= new URL(http://localhost:7001/webservice/MyService?WSDL);
MyServicePortType
mspt = myService.getMyServicePortTypeSoapPort(serviceUrl);
Stub
stub = (Stub)mspt;
I am new to this, so by all means this may not be the way to do it, but
perhaps you can try:
URL serviceUrl = new
URL(http://username:[EMAIL PROTECTED]:7001/webservice/MyService?WSDL);
Jim
[EMAIL PROTECTED] wrote:
I tried the following and I still get a 401 error:
Thanks for the reply James. No
dice though. Any other ideas?
-joshua
James Gough [EMAIL PROTECTED]
05/11/2006 02:39 PM
Please respond to axis-user
To:
axis-user@ws.apache.org
cc:
Subject:
Re: How to do basic http authentication
with axis 1.3 client?
I am new
Never mind!
[EMAIL PROTECTED]
05/11/2006 02:45 PM
Please respond to axis-user
To:
axis-user@ws.apache.org
cc:
Subject:
Re: How to do basic http authentication
with axis 1.3 client?
Thanks for the reply James. No dice though. Any other ideas?
-joshua
So that worked?
[EMAIL PROTECTED] wrote:
Never mind!
[EMAIL PROTECTED]
05/11/2006 02:45 PM
Please respond to axis-user
To:axis-user@ws.apache.org
cc:
Subject:Re: How to do basic http authentication with
axis 1.3 client
James,
It was a PEBCAK error. I mistyped
the username. =)
Joshua
James Gough [EMAIL PROTECTED]
05/11/2006 02:53 PM
Please respond to axis-user
To:
axis-user@ws.apache.org
cc:
Subject:
Re: How to do basic http authentication
with axis 1.3 client?
So
Hello James, Joshua,
Just in case, I'll quote the example from the JAX-RPC 1.1 spec that
explains the way to do this.
StockQuoteProvider_Stub sqp = // ... get to the stub;
sqp._setProperty(Stub.USERNAME_PROPERTY, username);
sqp._setProperty(Stub.PASSWORD_PROPERTY, password);
float quote =