303
Views
2
Comments
Consume REST API (SAP oData Call) from OutSystems
Question

Hello, 


I have an issue when consuming a REST API from OutSystems. The URL is an SAP oData call. The intent of the call is to apply a couple filters, PlantNo and MatNo, and expect to get some data back that satisfies the filter requirements.

In the URL, when hardcoding PlantNo and MatNo, data is returned through Postman; however, the same exact URL doesn’t work through OutSystems Service Studio Test (see screenshot below), nor when running the OutSystems app through the browser.  We get a “403 – Forbidden: Access is denied” error. We are not even getting thru to SAP. 


Thanks,

Andrew Joshua Loria


2020-09-11 18-53-44
Stacey Levine

 403 means that some authentication mode/data is missing. Is there a reason you are going through the effort of calling api instead of doing direction connections to the BAPI/zBAPI?

UserImage.jpg
Andrew Joshua Loria

Hi Stacey, we are wanting to try both the API way and SAP direct connect methods to explore and see which one would work better. So far we have been having issues with both the API and direct connect method.


Stacey Levine wrote:

 403 means that some authentication mode/data is missing. Is there a reason you are going through the effort of calling api instead of doing direction connections to the BAPI/zBAPI?



Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.