on 01-14-2021 2:11 PM
Hi experts,
I am currently trying to send a custom request over to my backend service by using clientAPI's sendRequest method. Unfortunately, the relative path I'm using returns the following error both in my VSC console and in my Mobile Services logs:
I have tried declaring the relative path to the service in my destination in the following fields:
Is there anything I'm missing to correctly map the relative path to my registered Destination? The reason I'm trying to send this request manually is because we are trying to handle the master data for our app and I need to capture and persist the delta token generated for each request in my MDK app, which should be included in the header of each response.
ClientAPI.sendRequest path is relative to your Mobile Services Server URL.
You will need to specify the destination too.
e.g. if you have a destination called "MyDestination" mapped to your Mobile Services app config, then your path should be
"/MyDestination/sap/opu/data/sap/ZPM_ODATA_SRV/MasterData01Set" (If your destination root is not the OData service and you need to append relative path to it)
or
"/MyDestination/MasterData01Set" (if your destination root is already the OData service)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.