aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Calling webservice problem - Urgent Please" Watch "Calling webservice problem - Urgent Please" New topic
Author

Calling webservice problem - Urgent Please

UdayK Kumar
Greenhorn

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.

try{

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(
"http://localhost:8080/axis2/services/MyService");
options.setTo(targetEPR);
QName opSetWeather = new QName("http://subscriber.services", "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++){
s=(String)response[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(AddressingFaultsHelper.java:373)

at org.apache.axis2.addressing.AddressingFaultsHelper.triggerActionNotSupportedFault(AddressingFaultsHelper.java:336)

at org.apache.axis2.handlers.addressing.AddressingValidationHandler.checkAction(AddressingValidationHandler.java:149)

at org.apache.axis2.handlers.addressing.AddressingValidationHandler.invoke(AddressingValidationHandler.java:55)

at org.apache.axis2.engine.Phase.invoke(Phase.java:317)

at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)

at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)

at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)

at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:131)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)

at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)

at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)

at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)

at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)

at java.lang.Thread.run(Thread.java:595)

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


 
Don't get me started about those stupid light bulbs.
 
subject: Calling webservice problem - Urgent Please