You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by umesh barik <um...@yahoo.com> on 2009/01/21 19:15:16 UTC
facing problem while writing client object
I am getting the following error while trying to connect to ESPPServer (on linux).
�
�
AxisFault
faultCode: {http://xml.apache.org/axis/}HTTP
faultSubcode:
faultString: (401)Unauthorized
faultActor:
faultNode:
faultDetail:
{}:return code: 401
<html><head><title>Apache Tomcat/5.5.26 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;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:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size: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.26</h3></body></html>
{http://xml.apache.org/axis/}HttpErrorCode:401
(401)Unauthorized
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:732)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:143)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
at org.apache.axis.client.Call.invoke(Call.java:2748)
at org.apache.axis.client.Call.invoke(Call.java:2424)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)
at com.cablelabs.espp.soap.api.ESPPSoapBindingStub.addPubIds(ESPPSoapBindingStub.java:1110)
at com.cablelabs.espp.client.ESPPClient.addPubId(ESPPClient.java:79)
at com.cablelabs.espp.client.ESPPClient.main(ESPPClient.java:55)
�
�
Trying to instantiate a ESPPClient and added the following codes to authenticate
�
ESPPService s = new ESPPServiceLocator();
ESPPPortType espp = s.getESPPPort(new URL(url));
((org.apache.axis.client.Stub)espp)._setProperty(Call.USERNAME_PROPERTY, "accountr1");
((org.apache.axis.client.Stub)espp)._setProperty(Call.PASSWORD_PROPERTY, "accountr1");
�
But not getting any result.
�
Appreciate any help. Thanks in advance.
�
-Umesh