You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Bob <bo...@yahoo.co.uk> on 2005/11/14 16:12:41 UTC

Re: Mappoint 401 unauthorised with CommonsHTTPSender (was : Axis and Mappoint.NET problem - "(405)Me

Hi,

> I think I got it.  I have actually just finished a
webservice 
> client that uses the \
> setUsername and setPassword methods of the call
interface.
> This is how it works:
> 
> SOAPInterface_PortType service = new 
> SOAPInterfaceLocator().getSOAPInterface();
>
((SOAPInterface_BindingStub)service).setUsername("username");
>
((SOAPInterface_BindingStub)service).setPassword("password");
>
> SOAPReturn return = service.getMethod(Parameters);
>

Thanks a lot, this sounds promising :)

I abandoned this for the time being, but I'll have
another look at it when I get chance.

> The only issue that I found with this method is that
the 
> password needed to be \
> encrypted for my use.  If I did not encrypt the
string used in 
> the password, I \
> received a 401 Authentication error.

I was under the impression that digest authentication
happened automatically as a result of using
CommonsHTTPSender, is that what you mean or is some
further manual intervention required?

> I hope this helps you to at least get started.
>
> Pobzeb Armerding
> Vann's Inc.
> Software Engineer

Thanks again,
Bob



		
___________________________________________________________ 
Yahoo! Model Search 2005 - Find the next catwalk superstars - http://uk.news.yahoo.com/hot/model-search/

Re: Mappoint 401 unauthorised with CommonsHTTPSender (was : Axis and Mappoint.NET problem - "(405)Me

Posted by Pobzeb Armerding <po...@vanns.net>.
The way that I did it was using the default HTTP Sender to make the call.  I suppose that you could use an HTTP Sender to handle the authentication, but this method worked for my purpose and it was very easy to implement.

Pobzeb Armerding
Vann's Inc.
Software Engineer

On Mon, 14 Nov 2005 15:12:41 +0000 (GMT), Bob wrote:
| Hi,
|
|| I think I got it.  I have actually just finished a
||
| webservice
|| client that uses the \
|| setUsername and setPassword methods of the call
| interface.
|| This is how it works:
||
|| SOAPInterface_PortType service = new
|| SOAPInterfaceLocator().getSOAPInterface();
||
| ((SOAPInterface_BindingStub)service).setUsername("username");
|
| ((SOAPInterface_BindingStub)service).setPassword("password");
|
|| SOAPReturn return = service.getMethod(Parameters);
||
|
| Thanks a lot, this sounds promising :)
|
| I abandoned this for the time being, but I'll have another look at
| it when I get chance.
|
|| The only issue that I found with this method is that
||
| the
|| password needed to be \
|| encrypted for my use.  If I did not encrypt the
| string used in
|| the password, I \
|| received a 401 Authentication error.
||
| I was under the impression that digest authentication happened
| automatically as a result of using
| CommonsHTTPSender, is that what you mean or is some further manual
| intervention required?
|
|| I hope this helps you to at least get started.
||
|| Pobzeb Armerding
|| Vann's Inc.
|| Software Engineer
||
| Thanks again,
| Bob
|
|
| ___________________________________________________________ Yahoo!
| Model Search 2005 - Find the next catwalk superstars -
| http://uk.news.yahoo.com/hot/model-search/