WCF Data Services and Silverlight

Slides:



Advertisements
Similar presentations
Svetlin Nakov Director Training and Consulting Activities National Academy for Software Development (NASD) ASP.NET 3.5 New Features.
Advertisements

Pierre-Johan CHARTRE Java EE - JAX-RS - Pierre-Johan CHARTRE
What Is Microsoft Marketplace DataMarket What Is Microsoft Marketplace DataMarket? Michael Stiefel
Server Access The REST of the Story David Cleary
Dhananjay Kumar
Web Services Nasrullah. Motivation about web service There are number of programms over the internet that need to communicate with other programms over.
ADVANTAGE WEBAPI PETER FUNK SOFTWARE ENGINEER, ADVANTAGE R&D MAY 20, 2011.
OPC WPFHMI.NET.
OData Data Sources Clients Web Browsers (Internet Explorer, Firefox, …) Web Browsers (Internet Explorer, Firefox, …) Mobile Phones (Android,
.NET Framework V3.5+ & RESTful web services Mike Taulty Developer & Platform Group Microsoft Ltd
Module 13: WCF Receive Adapters. Overview Lesson 1: Introduction to WCF Receive Adapters Lesson 2: Configuring a WCF Receive Adapter Lesson 3: Using the.
CS 415 N-Tier Application Development By Umair Ashraf July 6,2013 National University of Computer and Emerging Sciences Lecture # 9 Introduction to Web.
Building Offline/Cache Mode Web Apps Using Sync Framework Mike Clark Group Manager Cloud Data Services Team
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
What’s New? – BCS 2013 Brett Lonsdale.  Co-founder of Lightning Tools  One of the hosts on the SharePoint Pod Show  Co-organizer of SharePoint Saturday.
Module 14: WCF Send Adapters. Overview Lesson 1: Introduction to WCF Send Adapters Lesson 2: Consuming a Web Service Lesson 3: Consuming Services from.
Microsoft Visual Studio 2010 Muhammad Zubair MS (FAST-NU) Experience: 5+ Years Contact:- Cell#:
ADO.NET DATA SERVICES Mike Taulty Developer & Platform Group Microsoft UK
Python and REST Kevin Hibma. What is REST? Why REST? REST stands for Representational State Transfer. (It is sometimes spelled "ReST".) It relies on a.
Microsoft Visual Studio 2010 Muhammad Zubair MS (FAST-NU) Experience: 5+ Years Contact:- Cell#:
Intro to WCF From the beginning and uses Steve AppRochester.
Open Data Protocol * Han Wang 11/30/2012 *
Project “Astoria” first announced in Mix 2007 Shared early prototypes, got tons of feedback Now we’re talking about the real deal Production quality bits,
OData: There’s a Feed for That Pablo Castro Software Architect Microsoft Corporation
Lap Around Visual Studio 2008 &.NET 3.5 Enhancements.
1 Seminar on Service Oriented Architecture Principles of REST.
HTML5 AND THE FUTURE JAVASCRIPT PLATFORM Marcelo Lopez Ruiz Senior Software Design Engineer Microsoft Corporation.
Session 1 Chapter 1 - Introduction to Web Development ITI 133: HTML5 Desktop and Mobile Level I
1 ADO.NET Data Services Mike Taulty Developer & Platform Group Microsoft Ltd
SDK Overview Rob DeCarlo Bechtel.
March 15 – 17, Las Vegas Sascha P. Corti Microsoft
Exploring Networked Data and Data Stores Lesson 3.
2 ADO.NET Data Services for the Web Mike Flasko Program Manager, Microsoft “Project Astoria”
Introduction to Silverlight Development Pavel Yosifovich CTO, Matrix Global; Senior Instructor, Hi-Tech College
The Mechanics of HTTP Requests and Responses and network connections.
Java Web Services Orca Knowledge Center – Web Service key concepts.
Windows Communication Foundation and Web Services
Introducing the Microsoft® .NET Framework
Building and Consuming REST-based Data Services for the Web
Integration with External Applications: General View
Introducing the Windows Mobile development
Brice Copy, Mirjam Labrenz
COP4710 Database Systems Project Overview.
WEB SERVICES.
REST: Web Services Abel Sanchez.
Introduction to ArcGIS API for Microsoft Silverlight
Unit – 5 JAVA Web Services
IBM Data Server Gateway for OData
Windows Communication Foundation and Web Services
PHP / MySQL Introduction
Entity Framework 4 and WCF Data Services 4
Introduction to Web Services and SOA
ADO.NEXT Advances in Data Access for 2008
WEB API.
Silverlight Technology
MIX 09 11/23/2018 6:07 PM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered.
Accessing Data in a .NET Web Application
SharePoint data access and LINQ to SharePoint
$, $$, $$$ API testing Edition
Secure Web Programming
Pablo Castro Software Architect Microsoft Corporation
Creating a Distributed System with Remote Procedure Calls and Web Services Ch.5 B.Ramamurthy 2/17/2019 B.Ramamurthy.
What’s new in ASP.NET Core and Entity Framework 2.2 (Preview 3)
Maxim Lukiyanov Program Manager Microsoft Corporation
CS4433 Database Systems Project.
Python and REST Kevin Hibma.
Introduction to Web Services and SOA
Visual Studio + SQL Server Is Better
Dot Net Application PROF. S. LAKSHMANAN, DEPT. OF B. VOC. (SD & SA),
.NET Framework V3.5+ & RESTful web services
Presentation transcript:

WCF Data Services and Silverlight Kevin Morillo - Consultant

WCF Data Services 4.0 Why is WCF DS Cool? WCF DS Security Presentation Topics WCF Data Services 4.0 Why is WCF DS Cool? WCF DS Security Entity Framework 4.0 OData Silverlight Demo – Creating WCF Data Service and consuming it using a Silverlight Client 6/23/2019

Overview: WCF Data Services 4.0 What is WCF Data Services? Windows Communication Foundation A framework for building service-oriented applications Component of the .NET Framework that enables the creation of services that use the Open Data Protocol (OData)  to expose and consume data over the Web by using the semantics of representational state transfer (REST). Ok. So what does that mean? Provides a way to manipulate data in a stateless environment that integrates tightly into the .NET Framework, while also being adaptable to other technologies. 6/23/2019

Overview: WCF Data Services 4.0 Based off the notion of message-based communication If it can be transported in a message, then it can be modeled in a uniform way in WCF DS Remember your ABCs! Address URI describing where messages are sent http://server01.ftpaccess.cc:8081/AndroidWcfDataService1.svc/ http://server01.ftpaccess.cc:8081/Service1/Users Binding Describes how a message is sent Protocol (HTTP / TCP) Encoding (binary / text) Security Contract Service Contract: specification for a group of operations Operation Contract: specifies the parameters and return type of an operation, including error messages Message Contract: Describes the format for a message 6/23/2019

Overview: WCF Data Services 4.0 Messages and Endpoints Messages Self contained unit of data (HTML, MSMQ, etc.) Handled by… Endpoints! Endpoints Sends and receives messages Can act as both a client and service Contains Address and Binding Service Exposes one or more endpoints 6/23/2019

Why are WCF Data Services Cool? Quick to setup and maintain Even easier with the use of Entity Framework Very customizable Custom Endpoints, Bindings, Behaviors Tight integration into the .NET environment Many cross platform clients Uses HTTP/TCP and OData-- easy to create clients Configuration vs. Coding Change settings through external configuration files for easy settings changes Statically define configuration in code to retain strict control of settings 6/23/2019

Securable endpoints and entities WCF DS Security Securable endpoints and entities Set access rights to any Entity (Read / Write) Override service contract to filter what is returned by an endpoint 6/23/2019

Overview: Entity Framework Object / Relational Mapping framework that enables developers to work with relational data as domain- specific objects. Enables the manipulation of data through LINQ queries as strongly typed objects Works with a variety of Databases (MS SQL Server, Oracle, DB2) Tightly Integrated into Visual Studio Tools to create visual models and push the SQL schema to a new or existing database Tools to generate models from existing SQL databases 6/23/2019

Open Data Protocol (OData) What is OData?: The Open Data Protocol (OData) is a Web protocol for querying and updating data… 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 and services. Comprised of Feeds, Collections, and Entries Feed Collection of typed entries Entry Single structured record comprising of a key and a list of type properties Can contain a payload of JSON or Atom GET, POST, PUT, DELETE Use GET, POST, PUT, DELETE HTTP operations to manipulate data Metadata Document Describes the structure and organization of all resources in EDM terms using XML http://server01.ftpaccess.cc:8081/AndroidWcfDataService1.svc/$metadata TIP: use Fiddler or another web debugger to properly view a metadata document 6/23/2019

Open Data Protocol (OData) What is OData?: Example OData Feed: 6/23/2019

Overview: Silverlight Development platform for creating interactive applications for the web, desktop, and mobile devices. Think Adobe Flash geared towards developers instead of designers Cross platform IE, Firefox, Chrome, Safari Windows & Mac Windows Phone 7 Symbian (Nokia) 6/23/2019

Overview: Silverlight Supporting technologies AJAX HTTP Networking WCF, SOAP, ASP.NET AJAX Services XAML LINQ WPF Media streaming (Netflix) 2D graphics VB.NET & C#.NET Multithreading Printing WCF Data Services Full compatibility matrix http://www.silverlight.net/getstarted/overview.aspx 6/23/2019

WCF Data Services Client Libraries WCF Data Services Client Library .NET Framework Silverlight OData SDK Javascript (AJAX) PHP Java (RESTlet) Android Ruby Windows Phone 7 Objective-C (iPhone) SharePoint Excel 6/23/2019

Overview: WCF Data Services 4.0

Demo Time! Overview: Creating a WCF Service Integrating an Entity Data Model From existing SQL DB schema Consuming with Silverlight Website 6/23/2019

Resources http://www.odata.org/ http://odataobjc.codeplex.com/ - OData client for Obj-C http://www.ics.uci.edu/~fielding/pubs/dissertation/rest_arch_style.htm - REST http://msdn.microsoft.com/en-us/data/aa937709 - Entity Framework http://msdn.microsoft.com/en-us/library/cc197955(VS.95).aspx – Allow cross domain WCF Data Service access