Skip to Content
0

How to consume OData services from local sandbox system in sapui5 application in webide ?

Dec 08, 2017 at 02:02 PM

71

avatar image

Hi Experts,

I am trying to access OData services which is on local sandbox system in sapui5 application in WEBIDE and I am able to READ data and display in ui5 app but not

able to create POST request, getting "500 Internal Server".

Here I am not using destinations in hana cockpit.

Please guide me.

Can we post the data to local service which is on local server?

Thanks.

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

2 Answers

Arjun Biswas Dec 09, 2017 at 03:29 AM
0

Hi Venkatesh Machineni,

As you are getting the 500 error, something is wrong on the server side only. As you are able to read and display and bot able to create, I think the create functionality for your entityset is not being maintained in your back end. If you are only handling the back end, could you redefine the create_entity method in the DPC_EXT class of your required entity set. In that method, write the code to create an record in the table with the front end data.

Hope this helps,

Regards,

Arjun Biswas

Share
10 |10000 characters needed characters left characters exceeded
Richard Zhao
Dec 12, 2017 at 03:39 AM
0

Hello Venkatesh. Could you changed the HTTP destination authentication method to the NoAuthentication and changed the .xsaccess to eliminate authentication and test again? thanks

Share
10 |10000 characters needed characters left characters exceeded