You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Stefan Dragnev <st...@yahoo.com> on 2007/05/07 23:18:02 UTC

Problems with Axis2 1.1.1 and XMLBeans

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


Re: Problems with Axis2 1.1.1 and XMLBeans

Posted by Paul Fremantle <pz...@gmail.com>.
Great!

Thanks for the update.

Paul

On 5/8/07, Stefan Dragnev <st...@yahoo.com> wrote:
>
> Paul,
>
> I did some digging in Tomcat logs and my code and discovered that the
> problem
> was not caused by Axis2. I was using Axis2 1.1.1 Eclipse plugin and when I
> build the
> aar file some class files ended up in the wrong directory. As a result it
> didn't deploy
> correctly and the error I reported yesterday was coming from my old aar file
> which
> was generated from WSDL containing soap encoding. So I think the unsupported
> encoding soap encoding was the real culprit for the errors I was seeing. Now
> things seem to work as expected and I get a normal response from my service.
>
> Thanks,
> Stefan
>
>
>
> pzfreo wrote:
> >
> > Stefan
> >
> > Please can you post the WSDL as well.
> >
> > Thanks,
> > Paul
> >
> > On 5/7/07, Stefan Dragnev <st...@yahoo.com> wrote:
> >>
> >> 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
> >>
> >>
> >
> >
> > --
> > Paul Fremantle
> > VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
> >
> > http://bloglines.com/blog/paulfremantle
> > paul@wso2.com
> >
> > "Oxygenating the Web Service Platform", www.wso2.com
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Problems-with-Axis2-1.1.1-and-XMLBeans-tf3706297.html#a10378180
> 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
>
>


-- 
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
paul@wso2.com

"Oxygenating the Web Service Platform", www.wso2.com

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


Re: Problems with Axis2 1.1.1 and XMLBeans

Posted by Stefan Dragnev <st...@yahoo.com>.
Paul,

I did some digging in Tomcat logs and my code and discovered that the
problem
was not caused by Axis2. I was using Axis2 1.1.1 Eclipse plugin and when I
build the
aar file some class files ended up in the wrong directory. As a result it
didn't deploy 
correctly and the error I reported yesterday was coming from my old aar file
which 
was generated from WSDL containing soap encoding. So I think the unsupported 
encoding soap encoding was the real culprit for the errors I was seeing. Now
things seem to work as expected and I get a normal response from my service.

Thanks,
Stefan



pzfreo wrote:
> 
> Stefan
> 
> Please can you post the WSDL as well.
> 
> Thanks,
> Paul
> 
> On 5/7/07, Stefan Dragnev <st...@yahoo.com> wrote:
>>
>> 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
>>
>>
> 
> 
> -- 
> Paul Fremantle
> VP/Technology, WSO2 and OASIS WS-RX TC Co-chair
> 
> http://bloglines.com/blog/paulfremantle
> paul@wso2.com
> 
> "Oxygenating the Web Service Platform", www.wso2.com
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Problems-with-Axis2-1.1.1-and-XMLBeans-tf3706297.html#a10378180
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


Re: Problems with Axis2 1.1.1 and XMLBeans

Posted by Paul Fremantle <pz...@gmail.com>.
Stefan

Please can you post the WSDL as well.

Thanks,
Paul

On 5/7/07, Stefan Dragnev <st...@yahoo.com> wrote:
>
> 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
>
>


-- 
Paul Fremantle
VP/Technology, WSO2 and OASIS WS-RX TC Co-chair

http://bloglines.com/blog/paulfremantle
paul@wso2.com

"Oxygenating the Web Service Platform", www.wso2.com

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