REST CLient Example

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”>

SomeData
SomeData
SomeData


SomeData
SomeData
SomeData


SomeData

</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

On Fri, Dec 9, 2011 at 12:34 PM, rubythemystery ruby
[email protected] 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?

Hassan S. wrote in post #1036007:

On Fri, Dec 9, 2011 at 12:34 PM, rubythemystery ruby
[email protected] 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

On Fri, Dec 9, 2011 at 1:37 PM, rubythemystery ruby
[email protected] 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

No, I can’t, but all you need is right there :slight_smile: