SlideShare a Scribd company logo
OData Protocol and WCF Data Services Morris Bahrami
What is OData Protocol? OData  (Open Data) Protocol is a Web protocol for querying and updating data. It is based on HTTP, AtomPub, JSON and XML.  It can be used to expose and access information from sources such as relational databases, file systems, content management systems or traditional Web sites.
OData Protocol   It can be used as a general purpose interface for exposing Create Retrieve Update Delete (CRUD) operations on a data model.  It performs the CRUD based on existing HTTP methods: Create – POST, Retrieve- GET, Update - PUT , Delete – DELTE.
What is REST? Representational State Transfer (REST) is a software architecture for stateless client-server communication. Conforming to the REST constraints is referred to as being "RESTful".  REST uses existing HTTP verbs such as GET, PUT, POST and DELETE.
REST and OData REST is an architecture style and design pattern. OData is a specific protocol implementing REST.
What is WCF Data Services? WCF Data Services expose and consume OData feeds.
WCF Programming Models From http://blogs.msdn.com/b/endpoint/archive/2010/01/04/wcf-data-services-ria-services-alignment-questions-and-answers.aspx
WCF Programming Models SOAP Services  - The original WCF . Best for method based interfaces, needing message based security, other channels in addition to HTTP, or hosting outside of IIS.  Workflow Services -Is  used for sending and receiving Windows Workflow Foundation (WF) messages. RIA Services –  Best for building Silverlight applications.
WCF Programming Models WebHttp Services  (WCF REST) –  Best for exposing method based HTTP services or building a RESTful service with full control over the URI format.  Data Services – Best when you are exposing your data model and associated logic through a RESTful interface. It includes a full implementation of the Open Data (OData) Protocol.
Exposing data as a OData feed Define the data model. WCF Data Services natively supports ADO.NET Entity Framework. You can use any data model that implements IQueryable and IUpdateable interfaces. Create the data service. It is a class that inherits from the DataServiceclass, with a type T that is the namespace-qualified name of the entity container.  Configure the data service.
Accessing data service resources In OData, you address any data exposed by the data model by using a URI.  http://server1/DS1.svc/Employees http://server1/DS1.svc/Employees(2) http://server1/DS1.svc/Employees(2)/FirstName/$value http://server1/DS1.svc/Employees?$filter=FirstNameeq ‘Tom’
Some query options
Query operators

More Related Content

Viewers also liked

OData: A Standard API for Data Access
OData: A Standard API for Data AccessOData: A Standard API for Data Access
OData: A Standard API for Data AccessPat Patterson
 
MS PPM Summit Chicago_Nov 2015
MS PPM Summit Chicago_Nov 2015MS PPM Summit Chicago_Nov 2015
MS PPM Summit Chicago_Nov 2015Ludvic Baquie
 
Developing ssrs-reports-for-dynamics-ax
Developing ssrs-reports-for-dynamics-axDeveloping ssrs-reports-for-dynamics-ax
Developing ssrs-reports-for-dynamics-axNicc Ngo
 
Data Warehouse approaches with Dynamics AX
Data Warehouse  approaches with Dynamics AXData Warehouse  approaches with Dynamics AX
Data Warehouse approaches with Dynamics AXAlvin You
 
Dynamics Day 2013 AX 2012 Tips and Tricks 45 in 45
Dynamics Day 2013 AX 2012 Tips and Tricks 45 in 45Dynamics Day 2013 AX 2012 Tips and Tricks 45 in 45
Dynamics Day 2013 AX 2012 Tips and Tricks 45 in 45Intergen
 
Business intelligence in microsoft dynamics ax
Business intelligence in microsoft dynamics axBusiness intelligence in microsoft dynamics ax
Business intelligence in microsoft dynamics axAlfaPeople US
 
Dynamics Day 2014: Microsoft Dynamics AX - Roadmap
Dynamics Day 2014: Microsoft Dynamics AX - RoadmapDynamics Day 2014: Microsoft Dynamics AX - Roadmap
Dynamics Day 2014: Microsoft Dynamics AX - RoadmapIntergen
 
Dynamics Day 2012: Dynamics AX Update and Roadmap
Dynamics Day 2012: Dynamics AX Update and RoadmapDynamics Day 2012: Dynamics AX Update and Roadmap
Dynamics Day 2012: Dynamics AX Update and RoadmapIntergen
 

Viewers also liked (8)

OData: A Standard API for Data Access
OData: A Standard API for Data AccessOData: A Standard API for Data Access
OData: A Standard API for Data Access
 
MS PPM Summit Chicago_Nov 2015
MS PPM Summit Chicago_Nov 2015MS PPM Summit Chicago_Nov 2015
MS PPM Summit Chicago_Nov 2015
 
Developing ssrs-reports-for-dynamics-ax
Developing ssrs-reports-for-dynamics-axDeveloping ssrs-reports-for-dynamics-ax
Developing ssrs-reports-for-dynamics-ax
 
Data Warehouse approaches with Dynamics AX
Data Warehouse  approaches with Dynamics AXData Warehouse  approaches with Dynamics AX
Data Warehouse approaches with Dynamics AX
 
Dynamics Day 2013 AX 2012 Tips and Tricks 45 in 45
Dynamics Day 2013 AX 2012 Tips and Tricks 45 in 45Dynamics Day 2013 AX 2012 Tips and Tricks 45 in 45
Dynamics Day 2013 AX 2012 Tips and Tricks 45 in 45
 
Business intelligence in microsoft dynamics ax
Business intelligence in microsoft dynamics axBusiness intelligence in microsoft dynamics ax
Business intelligence in microsoft dynamics ax
 
Dynamics Day 2014: Microsoft Dynamics AX - Roadmap
Dynamics Day 2014: Microsoft Dynamics AX - RoadmapDynamics Day 2014: Microsoft Dynamics AX - Roadmap
Dynamics Day 2014: Microsoft Dynamics AX - Roadmap
 
Dynamics Day 2012: Dynamics AX Update and Roadmap
Dynamics Day 2012: Dynamics AX Update and RoadmapDynamics Day 2012: Dynamics AX Update and Roadmap
Dynamics Day 2012: Dynamics AX Update and Roadmap
 

Recently uploaded

10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka DoktorováCzechDreamin
 
Strategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering TeamsStrategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering TeamsUXDXConf
 
Server-Driven User Interface (SDUI) at Priceline
Server-Driven User Interface (SDUI) at PricelineServer-Driven User Interface (SDUI) at Priceline
Server-Driven User Interface (SDUI) at PricelineUXDXConf
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераMark Opanasiuk
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaRTTS
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonDianaGray10
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastUXDXConf
 
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya HalderCustom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya HalderCzechDreamin
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor TurskyiFwdays
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutesconfluent
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupCatarinaPereira64715
 
Transforming The New York Times: Empowering Evolution through UX
Transforming The New York Times: Empowering Evolution through UXTransforming The New York Times: Empowering Evolution through UX
Transforming The New York Times: Empowering Evolution through UXUXDXConf
 
Enterprise Security Monitoring, And Log Management.
Enterprise Security Monitoring, And Log Management.Enterprise Security Monitoring, And Log Management.
Enterprise Security Monitoring, And Log Management.Boni Yeamin
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekCzechDreamin
 
ECS 2024 Teams Premium - Pretty Secure
ECS 2024   Teams Premium - Pretty SecureECS 2024   Teams Premium - Pretty Secure
ECS 2024 Teams Premium - Pretty SecureFemke de Vroome
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsPaul Groth
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...CzechDreamin
 
IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoTAnalytics
 
UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1DianaGray10
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualityInflectra
 

Recently uploaded (20)

10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová10 Differences between Sales Cloud and CPQ, Blanka Doktorová
10 Differences between Sales Cloud and CPQ, Blanka Doktorová
 
Strategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering TeamsStrategic AI Integration in Engineering Teams
Strategic AI Integration in Engineering Teams
 
Server-Driven User Interface (SDUI) at Priceline
Server-Driven User Interface (SDUI) at PricelineServer-Driven User Interface (SDUI) at Priceline
Server-Driven User Interface (SDUI) at Priceline
 
Intro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджераIntro in Product Management - Коротко про професію продакт менеджера
Intro in Product Management - Коротко про професію продакт менеджера
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
Connector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a buttonConnector Corner: Automate dynamic content and events by pushing a button
Connector Corner: Automate dynamic content and events by pushing a button
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at Comcast
 
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya HalderCustom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
Custom Approval Process: A New Perspective, Pavel Hrbacek & Anindya Halder
 
"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi"Impact of front-end architecture on development cost", Viktor Turskyi
"Impact of front-end architecture on development cost", Viktor Turskyi
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutes
 
ODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User GroupODC, Data Fabric and Architecture User Group
ODC, Data Fabric and Architecture User Group
 
Transforming The New York Times: Empowering Evolution through UX
Transforming The New York Times: Empowering Evolution through UXTransforming The New York Times: Empowering Evolution through UX
Transforming The New York Times: Empowering Evolution through UX
 
Enterprise Security Monitoring, And Log Management.
Enterprise Security Monitoring, And Log Management.Enterprise Security Monitoring, And Log Management.
Enterprise Security Monitoring, And Log Management.
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří Karpíšek
 
ECS 2024 Teams Premium - Pretty Secure
ECS 2024   Teams Premium - Pretty SecureECS 2024   Teams Premium - Pretty Secure
ECS 2024 Teams Premium - Pretty Secure
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
Behind the Scenes From the Manager's Chair: Decoding the Secrets of Successfu...
 
IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024IoT Analytics Company Presentation May 2024
IoT Analytics Company Presentation May 2024
 
UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1UiPath Test Automation using UiPath Test Suite series, part 1
UiPath Test Automation using UiPath Test Suite series, part 1
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 

OData and WCF Data Services

  • 1. OData Protocol and WCF Data Services Morris Bahrami
  • 2. What is OData Protocol? OData (Open Data) Protocol is a Web protocol for querying and updating data. It is based on HTTP, AtomPub, JSON and XML. It can be used to expose and access information from sources such as relational databases, file systems, content management systems or traditional Web sites.
  • 3. OData Protocol It can be used as a general purpose interface for exposing Create Retrieve Update Delete (CRUD) operations on a data model. It performs the CRUD based on existing HTTP methods: Create – POST, Retrieve- GET, Update - PUT , Delete – DELTE.
  • 4. What is REST? Representational State Transfer (REST) is a software architecture for stateless client-server communication. Conforming to the REST constraints is referred to as being "RESTful". REST uses existing HTTP verbs such as GET, PUT, POST and DELETE.
  • 5. REST and OData REST is an architecture style and design pattern. OData is a specific protocol implementing REST.
  • 6. What is WCF Data Services? WCF Data Services expose and consume OData feeds.
  • 7. WCF Programming Models From http://blogs.msdn.com/b/endpoint/archive/2010/01/04/wcf-data-services-ria-services-alignment-questions-and-answers.aspx
  • 8. WCF Programming Models SOAP Services - The original WCF . Best for method based interfaces, needing message based security, other channels in addition to HTTP, or hosting outside of IIS. Workflow Services -Is used for sending and receiving Windows Workflow Foundation (WF) messages. RIA Services – Best for building Silverlight applications.
  • 9. WCF Programming Models WebHttp Services (WCF REST) – Best for exposing method based HTTP services or building a RESTful service with full control over the URI format. Data Services – Best when you are exposing your data model and associated logic through a RESTful interface. It includes a full implementation of the Open Data (OData) Protocol.
  • 10. Exposing data as a OData feed Define the data model. WCF Data Services natively supports ADO.NET Entity Framework. You can use any data model that implements IQueryable and IUpdateable interfaces. Create the data service. It is a class that inherits from the DataServiceclass, with a type T that is the namespace-qualified name of the entity container. Configure the data service.
  • 11. Accessing data service resources In OData, you address any data exposed by the data model by using a URI. http://server1/DS1.svc/Employees http://server1/DS1.svc/Employees(2) http://server1/DS1.svc/Employees(2)/FirstName/$value http://server1/DS1.svc/Employees?$filter=FirstNameeq ‘Tom’