Skip to Content

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

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Posted on Dec 09, 2017 at 03:29 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 12, 2017 at 03:39 AM

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.