0

I would like to use the SAP Cloud Platform SDK for Service Development in order to create odata-services the fancy and simple way :-)

@Query(serviceName = "EPMSampleService", entity = "Products")
public QueryResponse getAllProducts(QueryRequest queryRequest) {

I'have followed the instructions from the tutorial Creating a Simple OData V4 Service That Exposes Mock Data.

I am able to deploy and run it successfully in SAP Cloud Foundry, but my goal is to run it locally as well and later on SAP Neo Environment.

Therefore I've tried to deploy it on local SAP Server "Java Web Tomcat 8". The deployment was successful, I am also able to get $metadata. However once I call the Endpoint http://localhost:8080/quickstart/odata/v4/EPMSampleService/Products the following error message is returned:

{"error":{"code":"Operation is not supported.","message":"Operation is not supported."}}

Any ideas if the SCP Service SDK can be used somehow locally and in SAP NEO?

Sandra Rossi
  • 11,934
  • 5
  • 22
  • 48
OliM
  • 1
  • 1

2 Answers2

2

The SAP Cloud Platform SDK for service development only supports the Cloud Foundry environment. Kindly take a look at the official documentation.

Sander Wozniak
  • 650
  • 8
  • 27
  • 1
    Thanks Sander. The SDK is great and I really would like to use it. If I use Cloud Foundry as a runtime environment, is it then still possible to use the NEO services like "Workflow" and "SAP Jam"? – OliM Mar 26 '18 at 06:48
0

The error message {"error":{"code":"Operation is not supported.","message":"Operation is not supported."}} can be fixed by replacing the variable {packageName} in the web.xml with the actual package name from pom

OliM
  • 1
  • 1