on 06-08-2016 3:01 PM
Hi Naresh,
To implement ODATA service with PUT method, please adhere to the following points,
1. PUT method is meant for updating a specific existing record for which you need to mention the value of the key property of an entityset in the URI panel as,
Example,
/sap/opu/odata/sap/ZCREATE_TASK_ODATA_SRV/ZEntitySet('<task_id>')
2. You have to provide the XML payload at the lefthand http request panel that contains changes for the record referred by the key property
Regards
Suprio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Multiple issues.
The error given by framework is a generic one and your interpretation is incorrect. Refer what Atanu has to say.
My pointers -
1. You have not specified the Entity set name in service URL.
2. If you are using PUT method (Updating data) specify the key also as part of URL something like
<service URL>/<Entityset name>(<Key Value>)
Example -
<service URL>/SalesOrderSet('1212121212')
BR.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is not a timestamp error. This is an exception thrown by the Gateway with a time stamp.
The read issue is Operation type PUT. You need to change it to GET.
Read more about HTTP methods here HTTP Methods for RESTful Services
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
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.