axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Dragnev <stefan_drag...@yahoo.com>
Subject Problems with Axis2 1.1.1 and XMLBeans
Date Mon, 07 May 2007 21:18:02 GMT

I'm trying to implement several web services using Axis2 and XMLBeans. I
successfully generated stub and skeletons and services.xml files from my
WSDL (had to remove all rpc and soap encodings first) and then filled the
business logic and deployed on Tomcat. When I tried to invoke the service
thought I got the error below.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Header/>
   <soapenv:Body>
      <soapenv:Fault>
         <faultcode>soapenv:Client</faultcode>
         <faultstring>ServiceClass does not implement required method of the
form OMElement DataReq(OMElement e)</faultstring>
         <detail>
            <Exception>org.apache.axis2.AxisFault: ServiceClass does not
implement required method of the form OMElement BPDataReq(OMElement e)
	at
org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:99)
	at
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:39)
	at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:497)
	at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:328)
	at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:254)
	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)</Exception>
         </detail>
      </soapenv:Fault>
   </soapenv:Body>
</soapenv:Envelope>

Any idea what might be causing this error? I'm using Axis2 1.1.1 and java
1.5 and Tomcat 5.5.23. I'll appreciate any ideas on how I can resolve the
problem.


I used SOAP UI to test the service and this is how I invoked it

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:open="http://www.openuri.org/">
   <soapenv:Header/>
   <soapenv:Body>
      <open:DataReq>
         <open:SourceId>100</open:SourceId>
         <open:ListingId>1234567890</open:ListingId>
      </open:DataReq>
   </soapenv:Body>
</soapenv:Envelope>

What is strange to me is that the service is defined like that in my
skeleton file

public DataReqResponseDocument DataReq (DataReqDocument request)

and I have not modified it in any way other that filling in my business
logic.

Thanks,
Stefan
-- 
View this message in context: http://www.nabble.com/Problems-with-Axis2-1.1.1-and-XMLBeans-tf3706297.html#a10365520
Sent from the Axis - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message