Invoking RESTFUL Data service insert
Hello!
So when creating basic insert operations into a test table these work fine via the console. However when attempting the same operation via REST it works but instead of providing a simple blank screen we receive the following message...
XML Parsing Error: no element found
Location: https://:9443/services/testNotes/addNotes?noteID=41¬eName=My%20Various%20Notes¬eAuthor=Mr.%20Linger¬eContent=Well%20let%27s%20see%20if%20we%20are%20able%20to%20make%20a%20mark.%20shall%20we?
Line Number 1, Column 1:
^
I am fairly certain it is something basic but perused the documentation and I do not see a lot of material on the REST part of the services.
Thanks in advance for any assistance!
Cheers!
- Login or register to post comments
- Printer friendly version
- 268 reads











Hi, First of all, the issue
Hi,
First of all, the issue you have mentioned is a problem with the data services version we shipped with WSAS 2.3. (simply because we do not mention a result element for INSERT statement). It will be fixed in our future release.
The approach you have taken to invoke the service via REST is not the 'correct' way to do a call. ;-) . But it works...
In the correct REST way, you should send all your data in a URL (i.e. without any parameters) & set the correct HTTP method (GET/PUT/POST/DELETE). Depending on the action, the REST request processor should be able to deal with it.
Data Services(on top of WSAS 2.3) supports this. I will be publishing an article on how to write your configuration file to support this during coming week. Will post a message once it is done.
Thanks for your interest. Feel free question if you encounter a problem.
/sumedha