I have created a REST web service through screen scrapping. In which I created recording for READ and UPDATE of transaction TZ60 and TZ90.
Now as I am using this web service for reading and posting through java script. i.e Odata.read and Odata.request respectively.
Here READ is working fine, which is giving me exact data from the database. But when I try to POST the updated data i get an error like 'ERROR Occurred HTTP Request failed'.
I refereed this doc for writing java script.
Edited by: Vishvesh Shukla on Feb 9, 2012 8:19 AM
Edited by: Vishvesh Shukla on Feb 9, 2012 8:20 AM
Thank you so much for your reply. But now its working fine as per the document, earlier the recording was faulty due to which it was unable to update.
Could you please let me know how you resolved the issue.
I am also developing a web app in eclipse consuming the odata and when checking the script in Firebug i gor the error as
Thanks and regards
In my case the problem was with the Screen Scrapping recording itself. So I recorded the new screen and I tried the process as per the document for using REST service. Which worked finally.
You can search for the document for creating REST service in Gateway server.
This might be your problem and yes in URL you need to pass your server ip, its port, the collection name in $metadata. After that whatever service generates, that will be your final service which can be consumed anywhere as web service.
and sorry for too late reply.