Problem in Calling a webservice from another webservice

Discussions

XML & Web services: Problem in Calling a webservice from another webservice

  1. Hai, I want to call a web-service deployed in JBoss from another web-service that is depolyed in Tomcat5.5...I am getting an error as follows: 2007-04-09 11:22:42,718 ERROR org.apache.axis2.rpc.receivers.RPCInOnlyMessageRec eiver - A required header representing a Message Addressing Property is not pres ent java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver.invokeBusines sLogic(RPCInOnlyMessageReceiver.java:85) at org.apache.axis2.receivers.AbstractInMessageReceiver.receive(Abstract InMessageReceiver.java:35) at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:497) at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq uest(HTTPTransportUtils.java:328) at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:2 54) at javax.servlet.http.HttpServlet.service(HttpServlet.java:709) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl icationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF ilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV alve.java:213) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV alve.java:178) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j ava:126) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j ava:105) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal ve.java:107) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav a:148) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java :869) at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p rocessConnection(Http11BaseProtocol.java:664) at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpo int.java:527) at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFol lowerWorkerThread.java:80) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP ool.java:684) at java.lang.Thread.run(Unknown Source) Caused by: org.apache.axis2.AxisFault: A required header representing a Message Addressing Property is not present at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisO peration.java:271) at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAx isOperation.java:202) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java: 579) at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java: 508) at org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServic eClient.java:95) at com.jms.contentServer.ws.ProducerClient.contentServer(ProducerClient. java:119) at com.jms.contentServer.ws.ProducerClient.assignTemplateParameters(Prod ucerClient.java:136) ... 25 more What would be the error...Please help me...
  2. This actually happens when the services.xml file describing the service you are going to invoke mandates the use of addressing information. This is done by adding the tag "addressing" with value "required" in services.xml. You can both change the addressing to be "optional" or provide the required addressing information. This error happens also when the addressing module is engaged but you forget to properly set the action of the serviceclient's options with setAction.