JCO in a EJB used as Web Service
I'm trying to use JCO in a Web Service. What happens is that as soon as I try to call -any- JCO method I get an error: Exception in method getObjects.I can't even seem to catch this error within Java for a personalized message. I can't find an error in "dev_jrfc.trc" either.
To use JCO I referenced sapjco.jar as an external JAR in the Libraries from the Java Build Path.
Calling the JCO in a Web Dynpro environment doesn't give problems.
Does anyone know the reason for this and can help?
HTTP/1.1 500 Internal Server Error
Server: SAP J2EE Engine/7.00
Content-Type: text/xml; charset=UTF-8
Date: Thu, 22 Feb 2007 10:07:33 GMT
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ><SOAP-ENV:Body><SOAP-ENV:Fault><faultcode>SOAP-ENV:Client</faultcode><faultstring>Exception in method getObjects.</faultstring><detail><ns1:com.sap.engine.services.ejb.exceptions.BaseEJBException xmlns:ns1='http://sap-j2ee-engine/client-runtime-error'>Exception in method getObjects.</ns1:com.sap.engine.services.ejb.exceptions.BaseEJBException></detail></SOAP-ENV:Fault></SOAP-ENV:Body></SOAP-ENV:Envelope>
Message was edited just after posting by :
"JCO function" changed in "JCO method"