cancel
Showing results for 
Search instead for 
Did you mean: 

How to consume RESTfull services of a BAPI which hosted by Netweaver Gateway in SUP

Former Member
0 Kudos

Hi

I have created data model of bank BAPI in gateway server and created CRUD operations.

I have got metadata url which is working fine I have tested with REST client.

But when I try to consume it in SUP it asking for BASE url and Resource url.

I am not sure what should be that.

Here is my metadata url "http://uscinc2b7s3.noam.tcs.com:8010/sap/opu/sdata/sap/ZJDBANKCM/zjd_bank_dmCollection?sap-client=10...".

thanks,

Shruthi

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Shruthi,

The URL you have given refers to a collection call the 'zjd_bank_dm' collection. (You can see this at the end of the URL).

While consuming GW services via SUP, SUP asks for only 2 URLs ( 1 of them is optional ).

1. Base URL (OR also called the proxy application end point). This is the bottommost and the simplest form of representation of your service. It should ideally be "http://uscinc2b7s3.noam.tcs.com:8010/sap/opu/sdata/sap/ZJDBANKCM/" in your case.

2. Push End-point URL/URN : Which is optional to the app developer whether he needs to implement push in his application.

So when SUP talks about base URL it talks about point 1. This is the starting point for any GW service.

Best Regards, Pramod