Hi all,
Can anyone explain me with an example, by using REST Client to do
GET/POST/PUT operations in a Rest web service.
In POST/PUT, using REST Client, need to pass the whole xml body to do
POST/PUT operations.
for example, Using REST Client
I need to Get the content of a service using,
RESTClient.get(url)
POST an xml to an url,
RESTClient.post(url,entirexml)
PUT an xml to an URL,
RESTClient.put(url,entirexml)
DELETE using REST CLIENT
can anyone help me with examples for all the REST Client HTTP METHODS
with example.
XML content will be in the following format for example
<ns:id xmlns:location="location">
<items>
<itemOne>SomeData</itemOne>
<itemTwo>SomeData</itemTwo>
<itemThree>SomeData</itemThree>
<items>
<names>
<nameOne>SomeData</nameOne>
<nameTwo>SomeData</nameTwo>
<nameThree>SomeData</nameThree>
<names>
<books>
<booksname>SomeData</booknames>
</books>
</ns:id>
I need to send the whole xml along with namespace to a rest service
using PUT/POST operations of REST Client
If anyone have examples on this. kindly post me.
Thanks in advance
···
--
Posted via http://www.ruby-forum.com/.
The doc has examples: File: README — Documentation for rest-client (1.6.7)
Not enough?
···
On Fri, Dec 9, 2011 at 12:34 PM, rubythemystery ruby <rubythemystery@gmail.com> wrote:
Can anyone explain me with an example, by using REST Client to do
GET/POST/PUT operations in a Rest web service.
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan
Hassan Schroeder wrote in post #1036007:
···
On Fri, Dec 9, 2011 at 12:34 PM, rubythemystery ruby > <rubythemystery@gmail.com> wrote:
Can anyone explain me with an example, by using REST Client to do
GET/POST/PUT operations in a Rest web service.
The doc has examples: File: README — Documentation for rest-client (1.6.7)
Not enough?
Thanks ..
Can you suggest another docs/links where we can find POST/PUT of an XML
content thru REST CLIENT
--
Posted via http://www.ruby-forum.com/\.
No, I can't, but all you need is right there
···
On Fri, Dec 9, 2011 at 1:37 PM, rubythemystery ruby <rubythemystery@gmail.com> wrote:
The doc has examples: File: README — Documentation for rest-client (1.6.7)
Can you suggest another docs/links where we can find POST/PUT of an XML
content thru REST CLIENT
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
twitter: @hassan