Board index » jbuilder » faultString: (401)Unauthorized faultActor from Axis web service client call

faultString: (401)Unauthorized faultActor from Axis web service client call


2005-06-03 08:18:42 AM
jbuilder13
I followed exactly the same steps as in the Jbuilder tutorial
to create a web service(Axis) from an EJB application. The EJB
web service is deployed on the Borland Application server
successfully and running OK. Howerver, when i ran the client
code to call the getAllEmployees method, i got the following
error message:
AxisFault faultCode: {xml.apache.org/axis/}HTTP
faultSubcode: faultString: (401)Unauthorized faultActor:
faultNode: faultDetail: {}:return code: 401
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>401 Unauthorized</TITLE>
</HEAD><BODY><H1>Unauthorized</H1>
</BODY></HTML>{xml.apache.org/axis/}HttpErrorCode:401 (401)Unauthorized at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:663) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:94) 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:147) at org.apache.axis.client.Call.invokeEngine(Call.java:2735) at org.apache.axis.client.Call.invoke(Call.java:2718) at org.apache.axis.client.Call.invoke(Call.java:2394) at org.apache.axis.client.Call.invoke(Call.java:2317) at org.apache.axis.client.Call.invoke(Call.java:1774) at com.borland.samples.emp.webservices.EmpSessionSoapBindingStub.getId(EmpSessionSoapBindingStub.java:217)
Below is the client code calling the web service:
package com.borland.samples.emp.client;
public class Client {
public static void empSessionGetAllEmployees() {
com.borland.samples.emp.webservices.EmpSession binding;
try {
binding = new com.borland.samples.emp.webservices.
EmpSessionServiceLocator().getEmpSession();
}
catch (javax.xml.rpc.ServiceException jre) {
jre.printStackTrace();
return;
}
try {
com.borland.samples.emp.webservices.EmployeeInfo[] value = null;
value = binding.getAllEmployees();
if (value != null) {
for (int i=0; i < value.length; i++) {
System.out.println(value[i].getLastName() + ", "
+ value[i].getFirstName());
}
}
}
catch (java.rmi.RemoteException re) {
re.printStackTrace();
return;
}
}
public static void main(String[] args) {
org.apache.log4j.BasicConfigurator.configure();
empSessionGetAllEmployees();
}
}
What am i missing here? Please shed some light on this.
Your comments or help will be greatly appreciated!!
Art
 
 

Re:faultString: (401)Unauthorized faultActor from Axis web service client call

Art Lian wrote:
Quote
I followed exactly the same steps as in the Jbuilder tutorial
to create a web service(Axis) from an EJB application. The EJB
web service is deployed on the Borland Application server
successfully and running OK. Howerver, when i ran the client
code to call the getAllEmployees method, i got the following
error message:

You'll probably get more informed answers about deployments on Borland
Application Server on the BES groups. They are listed here:
support.borland.com/entry.jspa
--
Regards,
Lori Olson [TeamB]
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
www.google.ca/advanced_group_search
Other Newsgroup Searches:
www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
www.visi.com/~gyles19/fom-serve/cache/1.html