Skip to Content
1

API from OData service

Mar 03, 2017 at 12:44 PM

187

avatar image

Has anyone succeeded in creating an API from an on-premise odata service ?

Seems not possible with API Management Cloud Edition. I am getting the error:

Uncaught SyntaxError: Unexpected token < in JSON at position 0 at JSON.parse (<anonymous>) at constructor.eval (apiProxy.controller.js:2076) at p (sap-ui-core.js:115) at k (library-preload.js:1991) at library-preload.js:2035 at XMLHttpRequest.p9 (datajs.js:17)

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Sven Huberti
Mar 07, 2017 at 09:35 AM
0

Hello Bert,

API Management is agnostic in regards to what format the REST API is. It may be OData, JSON, XML, ....
To answer your primary question: yes, I have succeeded several times to create an API from an OData API.
It should not matter if your API is implemented in the cloud or on-premises. However, I highly recommend using the cloud connector to simplify things.

On what environment are you working? Is your tenant enabled to have the API calls over the cloud connector? AFAIK, this must be enabled for trial tenants.

Cheers,
Sven

Show 2 Share
10 |10000 characters needed characters left characters exceeded

Hello Sven,

I am not sure, which environment does Bert use, but I am using a trial account at hanatrial.ondemand.com with an active Cloud Connector. The problem is actually that I cannot save (even a draft of) my API and no matter how do I define it. After I press save the cockpit just "hangs" showing the bubbles for ever. The Developer tools show the same error as for Bert. Any ideas?

Thanks and best regards,

Denis

0

This should have been resolved. Can you let us know if this is still an issue for you guys? If so, perhaps we can take a look at your specific landscapes.

0
Elijah Martinez
Apr 06, 2017 at 06:04 AM
0

This topic has not been addressed in some time, but I will mention that the migration for Trial users to having the OnPrem connector has been completed. I have verified with Development and also personally tested on my own Trial account that it is working.

Please reach out in case you still are having issues to sapapimanagementinfo@sap.com .

Regards,
Elijah

Share
10 |10000 characters needed characters left characters exceeded