Thanks for replying! (I read the post on your blog on XML Namespaces)
The link you provides says:
" Axis does not yet implement these, but we do support XML signatures
via a sister project. "
Specifically, I am looking for a call to set the cachedUsername,
cachedPassword
>From my generated stubs:
protected org.apache.axis.client.Call createCall() throws
java.rmi.RemoteException {
try {
org.apache.axis.client.Call _call = super._createCall();
if (super.maintainSessionSet) {
_call.setMaintainSession(super.maintainSession);
}
if (super.cachedUsername != null) {
_call.setUsername(super.cachedUsername);
}
if (super.cachedPassword != null) {
_call.setPassword(super.cachedPassword);
}
How is super.cachedPassword and super.cachedUsername set?
Thanks,
Anil
-----Original Message-----
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
Sent: Saturday, June 09, 2007 11:33 AM
To: [email protected]
Subject: Re: 401 error - where to enter userid, password when calling a
client stub from Java?
See http://ws.apache.org/axis/java/security.html.
Axis relies on HTTPClient
(http://jakarta.apache.org/commons/httpclient/).
Anne
On 6/8/07, Anil Philip <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> I am trying to call a service, and get the following 401 error. The
stubs
> are generated using Axis 1.4 WSDL2Java.
>
> How do I pass in userid-password?
>
>
>
> -
>
> thanks,
>
> Anil
>
>
>
>
>
> faultDetail:
>
> {}:return code: 401
>
> <html><head><title>Apache Tomcat/5.5.20 -
> Error report</title><style><!--H1
>
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:22px;}
> H2
>
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:16px;}
> H3
>
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;font-size:14px;}
> BODY
>
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;
}
> B
>
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D7
6;}
> P
>
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-s
ize:12px;}A
> {color : black;}A.name {color : black;}HR {color :
> #525D76;}--></style>
> </head><body><h1>HTTP Status 401 -
> </h1><HR size="1"
> noshade="noshade"><p><b>type</b>
> Status report</p><p><b>message</b>
> <u></u></p><p><b>description</b>
> <u>This request requires HTTP authentication
> ().</u></p><HR size="1"
> noshade="noshade"><h3>Apache
> Tomcat/5.5.20</h3></body></html>
>
> {http://xml.apache.org/axis/}HttpErrorCode:401
>
>
>
> (401)Unauthorized
>
> at org.apache.axis
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]