Re: How to do basic http authentication with axis 1.3 client?

2006-05-11 Thread Joshua . White
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;

Re: How to do basic http authentication with axis 1.3 client?

2006-05-11 Thread James Gough
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:

Re: How to do basic http authentication with axis 1.3 client?

2006-05-11 Thread Joshua . White
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

Re: How to do basic http authentication with axis 1.3 client?

2006-05-11 Thread Joshua . White
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

Re: How to do basic http authentication with axis 1.3 client?

2006-05-11 Thread James Gough
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

Re: How to do basic http authentication with axis 1.3 client?

2006-05-11 Thread Joshua . White
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

Re: How to do basic http authentication with axis 1.3 client?

2006-05-11 Thread Dies Koper
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 =