Create WebService_oData_REST

How to create oData (REST) Web Service ?
How to consume oData(REST) with Windows Phone 8 Application?