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: 

Why is explicitly raised exception not caught or declared in IF_REST_RESOURCE

0 Kudos

Hi everyone,

We are using a REST provided service and according to SAP documentation on REST ( https://help.sap.com/docs/SAP_NETWEAVER_750/753088fc00704d0a80e7fbd6803c8adb/93f28917057f47e78a2abd4... ) we are using IF_REST_RESOURCE.

The client is created using SM59 destination ( CL_HTTP_CLIENT=>CREATE_BY_DESTINATION ).

I was very surprise to see that method CL_REST_HTTP_CLIENT->IF_REST_RESOURCE~POST calls method SEND_RECEIVE which explicitly raises exception type CX_REST_CLIENT_EXCEPTION without it being declared in method signature or caught ...

Is there a missing update on Documentation regarding usage of REST clients?

It should not matter but the provider of the REST Service is not SAP based.

Any additional information would be much appreciated.

1 REPLY 1

Sandra_Rossi
Active Contributor
0 Kudos

It sounds like a bug, in that case check the SAP notes or contact SAP support.