The document summarizes a presentation about the OData protocol given by Jorge Gonçalves and Manuel Costa. OData provides a standardized way to expose and consume data via RESTful web services. It allows data from various sources to be unlocked and queried using HTTP, JSON, and other web technologies. The presentation covered the basics of OData, how to create and consume OData services using .NET, and various OData client options for JavaScript, Excel, and LightSwitch. Questions from attendees were invited at the end.
1. 34ª Reunião Lisboa - 08/12/2012 http://netponto.org
OData – A Super Cola W3!
Jorge Gonçalves & Manuel Costa
2. Jorge Gonçalves
Formador responsável .NET na Rumos SA
Fundador da Consultora SimpleFactor
Administrador de Sistemas na DGITA
Analista Programador (Altitude Software, BES, BCP, ...)
Manuel Costa
Consultor .NET na PT Sistemas de Informação S.A.
na área do Portal Web de Vendas da PT.
Co-fundador da Factor Digital Informática em
2000, onde desenvolveu sobre plataformas web
para a Microsoft, a TMN, a Priberam, os Hotéis
Dom Pedro, a Nestlé… Sempre em .NET
3. Agenda: OData – The Web “Glue”!
• The What’s and Why’s
• CRUD: “REST in peace”
• Writing OData Services With .NET
• OData Clients
4. What is OData
• “The Open Data Protocol (OData) is a Web protocol for
querying and updating data that provides a way to unlock
your data and free it from silos that exist in applications
today.” www.odata.org
• “OData does this by applying and building upon Web
technologies such as HTTP, Atom Publishing
Protocol (AtomPub) and JSON to provide access to
information from a variety of applications, services, and
stores.” www.odata.org
5. Why use the Open Data Protocol?
• “Provides a uniform way to expose,
structure, query and manipulate data using
REST practices and JSON or ATOM syntax to
describe the payload. OData also provides a
uniform way to represent metadata about
the data, allowing computers to know more
about the type system, relationships and
structure of the data.”
www.odata.org
25. Próximas reuniões presenciais
• 08/12/2012 – Dezembro (Lisboa)
• 26/01/2013 – Janeiro (Lisboa)
23/02/2013 – Fevereiro (Lisboa)
16/03/2013 – Março (Lisboa)
Reserva estes dias na agenda! :)
Examples:http://msdn.microsoft.com/en-us/library/ff478141.aspxhttp://www.codeproject.com/Articles/393623/OData-Services#ImplementInstalling the Northwind Sample Databasehttp://msdn.microsoft.com/en-us/library/vstudio/ff851969.aspxNorthwind database that can be downloaded as an executable sql script ( 285 Kb only ) or as a backup that can be restored with sample data currently works with Sql Server 2005 and Sql Server 2008http://northwinddatabase.codeplex.com/
http://www.odata.org/developers/articleshttp://www.codeproject.com/Articles/393623/OData-Serviceshttp://blogs.msdn.com/b/alexj/archive/2012/08/15/odata-support-in-asp-net-web-api.aspx[1]Authenticating with ADO.NET Data Serviceshttp://mtaulty.com/CommunityServer/blogs/mike_taultys_blog/archive/2008/05/27/10447.aspx
Examples:http://msdn.microsoft.com/en-us/library/ff478141.aspxhttp://www.codeproject.com/Articles/393623/OData-Services#ImplementInstalling the Northwind Sample Databasehttp://msdn.microsoft.com/en-us/library/vstudio/ff851969.aspxNorthwind database that can be downloaded as an executable sql script ( 285 Kb only ) or as a backup that can be restored with sample data currently works with Sql Server 2005 and Sql Server 2008http://northwinddatabase.codeplex.com/
[JSONPSupportBehavior]JSONP and URL-controlled format support for ADO.NET Data Services http://archive.msdn.microsoft.com/DataServicesJSONPCreate and Consume JSON-Formatted Odatahttp://msdn.microsoft.com/en-us/magazine/jj190799.aspxBREAKING CHANGE: V3: Accept: application/json;odata=verbose