It explains about how to create a REST service in Salesforce.com and how to consume the REST Service from Salesforce.com
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.