aspose file tools*
The moose likes Web Services and the fly likes Problem to call Axis2 web sercvice (org.apache.axis.AxisFault: (401)Authorization Required) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Problem to call Axis2 web sercvice (org.apache.axis.AxisFault: (401)Authorization Required)" Watch "Problem to call Axis2 web sercvice (org.apache.axis.AxisFault: (401)Authorization Required)" New topic
Author

Problem to call Axis2 web sercvice (org.apache.axis.AxisFault: (401)Authorization Required)

Kathiresan Chinnasamy
Ranch Hand

Joined: Jan 01, 2008
Posts: 65
Hi Friends,

In my project I released web service for a particular class in Axis 2.

The class contains two methods.
for example
one is A() and another one is B().

If i call the A() method from client server, it access fine.

But when i calling the B() method from client server, i got an exception that org.apache.axis.AxisFault: (401)Authorization Required.

I don't understand the problem where is, because exception code is 401.

If authorization problem means, it should through 401 exception even A() access .


Note : I am using weblogic server 9.2 for client and server.


Do you have an any idea for this problem ?



The exception log is :

org.apache.axis.AxisFault: (401)Authorization Required
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:722)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:131)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:73)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:160)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:123)
at org.jboss.webservice.client.ClientEngine.invoke(ClientEngine.java:126)
at org.apache.axis.client.Call.invokeEngine(Call.java:3029)
at org.apache.axis.client.Call.invoke(Call.java:3014)
at org.apache.axis.client.Call.invoke(Call.java:2608)
at org.apache.axis.client.Call.invoke(Call.java:2513)
at org.apache.axis.client.Call.invokeInternal(Call.java:1973)
at org.apache.axis.client.Call.invoke(Call.java:1914)
at org.jboss.webservice.client.CallImpl.invoke(CallImpl.java:265)
at org.apache.axis.client.AxisClientProxy.invoke(AxisClientProxy.java:403)
at $Proxy1113.B(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.webservice.client.PortProxy.invoke(PortProxy.java:111)
at $Proxy114.B(Unknown Source)
...........
Kathiresan Chinnasamy
Ranch Hand

Joined: Jan 01, 2008
Posts: 65
Please answer me if anyone know this problem
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
It sounds like you have some kind of security (basic authorization?) enabled for your web service.
Have you tried to access both methods using soapUI?
Best wishes!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem to call Axis2 web sercvice (org.apache.axis.AxisFault: (401)Authorization Required)
 
Similar Threads
Connect Exception from ws cleint axis
java.net.SocketException : Default SSL context init failed : null
problem in Axis sample application
Unable to test webservice using a client
Axis 1.4 username/password auth with stubs