axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kensky Schulz" <kensky.sch...@googlemail.com>
Subject [AXIS2] Having problem in-only operation calling through stub . Plain Text Version
Date Wed, 19 Apr 2006 19:32:22 GMT
>
> Hello!
Sorry for sending again. here is plain text version.
>
> The problem is I have a method updateResource taking one parameter UpdateDocDocument
and return type is void. When calling through client it gives strange message.
> So, the complete server method and client calling, along with stack trace is pasted in
this email.
>
> I shall be grateful for your kind help.
>
> In axis2  ( 0.95 ),
>  Serverside code
>
>
>       public  void updateResource
>                    (UpdateDocDocument param2 ) throws Exception {
>                  System.out.println("in server");
>                  System.out.println(param2.getUpdateDoc().getResourceContent());
>                    System.out.println(param2.getUpdateDoc().getResourceName());
>
>
>         }
>
>
> on the client side calling;
>
>
> public void updateDoc() throws Exception {
>                  ResourceDiscoveryStub stub = new ResourceDiscoveryStub(
>                                  "http://localhost:8080/axis2/services/MyService ");
>
>
>                 UpdateDocDocument uDoc =  UpdateDocDocument.Factory.newInstance();
>                  UpdateDocType uType = uDoc.addNewUpdateDoc();
>
>
>                 uType.setResourceContent("<start><end>");
>                   uType.setResourceName("resource_2");
>                  uDoc.setUpdateDoc(uType);
>                 stub.updateResource(uDoc);
>
> }
>
>  Its giving me,
>  Exception in thread "main" org.apache.axis2.AxisFault:
>  org.apache.axis2.AxisFault : Raw Xml provider supports only the methods
>  bearing the signature public OMElement &lt;method-name&gt;(OMElement)
>  where the method name can be anything
>          at
>   org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver.invokeBusinessLogic(
>
>  RawXMLINOnlyMessageReceiver.java:103)
>          at
>  org.apache.axis2.receivers.AbstractInMessageReceiver.receive (AbstractInMessageReceiver.java:34)
>          at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:408)
>          at
>  org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java
 :288)
>          at
>  org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:160)
>          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(ApplicationFilterChain.java:252)
>          at
>  org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java
:173)
>          at
>  org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>          at
>  org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>           at
>  org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>          at
>  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>          at
>  org.apache.catalina.core.StandardEngineValve.invoke  (StandardEngineValve.java:107)
>          at
>  org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>          at
>  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>          at
>  org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
>          at
>  org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java  :527)
>          at
>  org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>          at
>  org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java  :684)
>          at java.lang.Thread.run(Thread.java:595)
>  ; nested exception is:
>          java.lang.Exception: org.apache.axis2.AxisFault: Raw Xml provider
>  supports only the methods bearing the signature public OMElement
>  &lt;method-name&gt;(OMElement) where the method name can be anything
>          at
>  org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver.invokeBusinessLogic(RawXMLINOnlyMessageReceiver.java:103)
>           at
>  org.apache.axis2.receivers.AbstractInMessageReceiver.receive(AbstractInMessageReceiver.java:34)
>          at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:408)
>          at
>  org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest  (HTTPTransportUtils.java:288)
>          at
>  org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:160)
>          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(ApplicationFilterChain.java:252)
>          at
>  org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java
:173)
>          at
>  org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>          at
>  org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>           at
>  org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>          at
>  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>          at
>  org.apache.catalina.core.StandardEngineValve.invoke  (StandardEngineValve.java:107)
>          at
>  org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
>          at
>  org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
>          at
>  org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
>          at
>  org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java  :527)
>          at
>  org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
>          at
>  org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java  :684)
>          at java.lang.Thread.run(Thread.java:595)
>
>
>
>
>
>
>
>
>
> Thanks and Regards
>
>
> Kensky Schulz

Mime
View raw message