Skip to Content
0
Jul 20 at 09:18 AM

CAP - JAVA localized texts service expose

67 Views Last edit Jul 20 at 09:29 AM 2 rev

sample: https://github.com/SAP-samples/cloud-cap-samples-java.git

- cds path: cloud-cap-samples-java/srv/review-service.cds

call odata url: https://workspaces-ws-#####-app1.####.trial.applicationstudio.cloud.sap/api/review/Books_texts

return value:

{ "error": { "code": "403001", "message": "Not authorized to send event 'READ' to 'ReviewService.Books.texts'" } }

java stack error:

2021-07-20 17:33:59.428 INFO 1484 --- [nio-8080-exec-5] c.s.c.a.o.v4.processors.CdsProcessor : Exception marked the ChangeSet 16 as cancelled: Not authorized to send event 'READ' to 'ReviewService.Books.texts' (service 'ReviewService', event 'READ', entity 'ReviewService.Books.texts')