title: REST Client Example in Ruby
body: <p>Can anyone explain me with an example, by using REST Client to do GET/POST/PUT operations in a Rest web service?</p>
  
  <p>In POST/PUT, using REST Client, need to pass the whole xml body to do
  POST/PUT operations.</p>
  
  <p>For example, Using <code>REST Client</code></p>
  
  <p>I need to get the content of a service using,</p>
  
  <pre><code>      RESTClient.get(url)
  </code></pre>
  
  <p>POST an xml to an url:</p>
  
  <pre><code>      RESTClient.post(url,entirexml)
  </code></pre>
  
  <p>PUT an xml to an URL:</p>
  
  <pre><code>      RESTClient.put(url,entirexml)
  </code></pre>
  
  <p>DELETE using REST CLIENT.</p>
  
  <p>Can anyone help me with examples for all the REST Client HTTP METHODS with example?</p>
  
  <p>I need to send the whole XML along with namespace to a rest service using PUT/POST operations of REST Client.</p>
  
  <p>If anyone have examples on this, kindly post then please.</p>