BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

faultString: (401)Unauthorized faultActor from Axis web se

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder IDE
View previous topic :: View next topic  
Author Message
Art Lian
Guest





PostPosted: Fri Jun 03, 2005 12:18 am    Post subject: faultString: (401)Unauthorized faultActor from Axis web se Reply with 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:


AxisFault faultCode: {http://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> {http://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

Back to top
Lori M Olson [TeamB]
Guest





PostPosted: Fri Jun 03, 2005 2:40 am    Post subject: Re: faultString: (401)Unauthorized faultActor from Axis we Reply with quote



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:

http://support.borland.com/entry.jspa?externalID=1094#BES

--

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
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> JBuilder IDE All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.