on 01-20-2014 9:31 AM
I am an android developer , it is my first time use the sap netweaver gateway to create an android application.
I use the netweaver gateway sdk to create a List/details Application.
I can get our backend server data .
Now I need to another service to update the data.But I do not know how to get it.
There are some screen shoots.
this is our sap netweaver gateway backend , I can get the data from BasicQueryCustomer by the sdk that is auto-generated.
Now I want to get the BasicDeltaCustomers data.
In the BasicQueryCustomer I can get all the data .BasicDeltaCustomers i can get the changed data .
At the end of the BasicQueryCustomer data there is a delta token . It is used to get the BasicDeltaCustomers data
this is the BasicDeltaCustomers
Regards
Thanks in advance
You can try your Odata service in a rest client. You have to perform GET using the create url and save the token. Then you need to do a PUT along with token got from GET. Make sure this is working from a restClient and implement it in Android.
This might help you,
In Create: CSRF token validation failed | SCN
- Midhun VP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You need to create Odata service manually in the NW gateway based on your requirement, that involves ABAP coding. Then you will be able to consume it in the device. When you are doing a POST from your code you need to pass the CSRF token also also with the request then only the data will be updated in SAP.
Helpful links,
L13 Build SAP Netweaver Gateway Service HelloWorld odata channel - YouTube
- Midhun VP
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.