Application Development and Automation 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: 
Read only

implementing RESTful services using ABAP HTTP POST method.

Former Member
0 Likes
1,812

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
Read only

Former Member
0 Likes
788

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

Read only

0 Likes
788

This message was moderated.

Read only

Ankit_Maskara
Product and Topic Expert
Product and Topic Expert
0 Likes
788

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.

Read only

0 Likes
788

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