Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

implementing RESTful services using ABAP HTTP POST method.

Former Member
0 Kudos

I have implemented the RESTful service using ABAP HTTP POST method. The json is getting created. Whe I am using HTTP GET method, I am able to GET the data from JAVA server but when I am posting data using POST method, I am getting HTTP 500 Error(internal server error: java io exception).

What to do?

4 REPLIES 4

Former Member
0 Kudos

Hi Priya

Test that the Java Post works internally.

Then verify that the parameters you send via ABAP match those that you tested internally with.

That should narrow your issue down a bit.

Regards

Arden

0 Kudos

This message was moderated.

former_member185414
Active Contributor
0 Kudos

Hello Priya,

What is the exact error you are getting after executing POST method? Also it may be an issue due to XSRF token which is needed for POST Requests so use first a GET request and then use the same header with POST method.

BR.

0 Kudos

Hi Priya

Take a look through the document referenced below.

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/40d59930-791c-3010-2abd-ac7793ad6...

It has quite a bit of code which may be of use for you.

Some very good examples of a full implementation

Regards

Arden