This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Web Services and the fly likes Calling webservice problem - Urgent Please Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Calling webservice problem - Urgent Please" Watch "Calling webservice problem - Urgent Please" New topic

Calling webservice problem - Urgent Please

UdayK Kumar

Joined: Aug 05, 2009
Posts: 26

when I am trying to call web service with the following code the following error is getting. Please help me to resolve the below error.


ConfigurationContext ctx = ConfigurationContextFactory.createConfigurationContextFromFileSystem(args[0], args[0] + "/conf/axis2.xml");
RPCServiceClient serviceClient = new RPCServiceClient(ctx,null);
Options options = serviceClient.getOptions();
EndpointReference targetEPR = new EndpointReference(
QName opSetWeather = new QName("", "getBalance");
QName opSetWeather = new QName("getBalance");
Object[] ags=null;
String s = "123";
ags = new Object[]{sb};
Class str=("MyClass").getClass();
Object[] response =serviceClient.invokeBlocking(opSetWeather, ags,new Class[]{str});

String s=null;
for(int i=0;i<response.length;i++){
System.out.println("Res: "+s);
}catch(Exception e){


I am getting the exception as below at server side...

[WARN] triggerActionNotSupportedFault: messageContext: [MessageContext: logID=urn:uuid:04210B6CA4938F73C31251982761181] problemAction: urn:anonOutInOpResponse

[ERROR] The [action] cannot be processed at the receiver.

org.apache.axis2.AxisFault: The [action] cannot be processed at the receiver.

at org.apache.axis2.addressing.AddressingFaultsHelper.triggerAddressingFault(

at org.apache.axis2.addressing.AddressingFaultsHelper.triggerActionNotSupportedFault(

at org.apache.axis2.handlers.addressing.AddressingValidationHandler.checkAction(

at org.apache.axis2.handlers.addressing.AddressingValidationHandler.invoke(

at org.apache.axis2.engine.Phase.invoke(

at org.apache.axis2.engine.AxisEngine.invoke(

at org.apache.axis2.engine.AxisEngine.receive(

at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(

at org.apache.axis2.transport.http.AxisServlet.doPost(

at javax.servlet.http.HttpServlet.service(

at javax.servlet.http.HttpServlet.service(

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(

at org.apache.catalina.core.ApplicationFilterChain.doFilter(

at org.apache.catalina.core.StandardWrapperValve.invoke(

at org.apache.catalina.core.StandardContextValve.invoke(

at org.apache.catalina.core.StandardHostValve.invoke(

at org.apache.catalina.valves.ErrorReportValve.invoke(

at org.apache.catalina.core.StandardEngineValve.invoke(

at org.apache.catalina.connector.CoyoteAdapter.service(

at org.apache.coyote.http11.Http11Processor.process(

at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(



at org.apache.tomcat.util.threads.ThreadPool$


[INFO] org.apache.axis2.AxisFault: Error in extracting message properties

I agree. Here's the link:
subject: Calling webservice problem - Urgent Please
It's not a secret anymore!