Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

entity Service using external Service (Web services)

Hi, experts

I have the following problem:

one business object "Staff" uses two methods "getEmployeeByEmployeeId" and "getAllEmployees" in a web service. I have the entity Service "Staff" and define the mapping between "findById" and "getEmployeeByEmployeeId", between "findAll" and "getAllEmployees".

I have done the configuration of webservices and mapping in the CAF runtime.

The webservice runs and I get the results what I want.

But if I go to the test tool in CAF runtime and test the Entity Service Staff.

For "findById" I get the following error:

java.lang.ClassCastException: class incompatible with interface java.util.List:null




at sap.prototyp.modeled.bonode.staff.staff.StaffBean.findByMultipleParameters(

at sap.prototyp.modeled.bonode.staff.staff.StaffBean.findById(

for the other I get the error: Operation not supported.


at sap.prototyp.modeled.bonode.staff.staff.StaffBean.getZoneMemberStaffAssiciation(

I have checked for the first error: the cardinality of both is 0...1 (strange: from the webservice method I get the cardinality 1...1, and I can not change it)

For the second error...I think it seem somehow problem with the association: Can the entity service using remote Persistence have the asscociation with another business objects?

Thanks in advance fot any Hints and

Kind Regars!


Not what you were looking for? View more on this topic or Ask a question