Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Kathiresan Chinnasamy
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please answer me if anyone know this problem
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic