cancel
Showing results for 
Search instead for 
Did you mean: 

Getting Timestamp error while creating Odata Webservice

Former Member
0 Kudos

Hello Experts,

I have created an Odata webservice ,but while testing its showing Timestamp error. i am uploading the screen shot  ,kindly help me.

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

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

former_member185414
Active Contributor
0 Kudos

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.

former_member184867
Active Contributor
0 Kudos

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