Click to edit Master title style Click to

  • Slides: 28
Download presentation
Click to edit Master title style • Click to edit Master text styles –

Click to edit Master title style • Click to edit Master text styles – Second level • Third level – Fourth level » Fifth level Liberate Your Apps! Philippe Leefsma Senior Developer Consultant Autodesk Developer Network Autodesk Confidential Information

Click to. Getting edit Master Started title style § • Windows Click to edit

Click to. Getting edit Master Started title style § • Windows Click to edit Master text styles Communication Foundation (WCF) ØSecond level – http: //msdn. microsoft. com/enus/library/ms 731082. aspx • Third level – Fourth level » Fifth level § Cloud Hosting Providers Ø http: //www. windowsazure. com Ø http: //aws. amazon. com Autodesk Confidential Information

Click to edit Master title style • Click to edit Master text styles WCF

Click to edit Master title style • Click to edit Master text styles WCF Web Services – Second level • Third level Migrate your Application logic – Fourth level to the cloud… » Fifth level Autodesk Confidential Information

is WCFtitle ? style Click to What edit Master § Windows Communication Foundation is

is WCFtitle ? style Click to What edit Master § Windows Communication Foundation is • Click to edit Master text styles Microsoft's next-generation programming – Second level platform and runtime system for building, • Third level configuring and deploying network-distributed – Fourth level services » Fifth level (Source MSDN) Autodesk Confidential Information

Click to. WCF edit. Unification Master title style • Click to edit Master text

Click to. WCF edit. Unification Master title style • Click to edit Master text styles – Second level • Third level – Fourth level » Fifth level Autodesk Confidential Information

- ABC Click to. WCF edit. Basics Master title style § "ABC" is the

- ABC Click to. WCF edit. Basics Master title style § "ABC" is the key to understand how a WCF • service is composed: Click to edit Master text styles – Second level Ø"A" stands for Address: • Third level Where is the service? – Fourth level » Fifth level Ø"B" stands for Binding: How do clients talk to the service? Ø"C" stands for Contract: What can the service do for a client? Autodesk Confidential Information

 Data Contract Click to edit Master title style [Data. Contract] public class Adn.

Data Contract Click to edit Master title style [Data. Contract] public class Adn. Material { [Data. Member] public string Name { – Second level get; set; • Third level } • Click to edit Master text styles – Fourth level [Data. Member] » Fifth level public double Price { get; set; } [Data. Member] public string Manufacturer { get; set; } } Autodesk Confidential Information

Service Contract Click to edit Master title style [Service. Contract] public interface IMaterial. Srv

Service Contract Click to edit Master title style [Service. Contract] public interface IMaterial. Srv • Click to edit Master text styles { [Operation. Contract] – Second level Adn. Material[] Get. Materials(); • Third level – Fourth level [Operation. Contract] » Fifth level Adn. Material Get. Material( string material. Name); [Operation. Contract] bool Post. Material( Adn. Material material); } Autodesk Confidential Information

Implementing Services Click to edit Master title style public class Material. Srv : IMaterial.

Implementing Services Click to edit Master title style public class Material. Srv : IMaterial. Srv • Click to edit Master text styles { public Material. Srv() – Second level { • Third level //Constructor. . . – Fourth level } » Fifth level public Adn. Material[] Get. Materials() { //Implementation. . . } //Implementation other methods. . . } Autodesk Confidential Information

bindings Click to. Service edit Master title style A binding binds a service contract

bindings Click to. Service edit Master title style A binding binds a service contract • § Click to edit Master text styles implementation to an address. – Second level • Third level This includes: – Fourth level » Fifth level Ø Choosing an appropriate transport protocol Ø Choosing how messages are encoded Ø Defining how security works Autodesk Confidential Information

a Service Click to. Hosting edit Master title style § • The following options

a Service Click to. Hosting edit Master title style § • The following options are available to host a Click to edit Master text styles WCF Service: – Second level • Third level Ø Self-hosting in any managed. NET application – Fourth level Winform, WPF, console Application, … » Fifth level Ø Hosting in a Windows service Ø Hosting in IIS ASP. Net Direct Hosting Autodesk Confidential Information

Click to edit WCF Master Demotitle style • Click to edit Master text styles

Click to edit WCF Master Demotitle style • Click to edit Master text styles – Second level • Third level – Fourth level » Fifth level Autodesk Confidential Information

Requests Click to. HTTP edit Master title style § • World Wide Web (WWW)

Requests Click to. HTTP edit Master title style § • World Wide Web (WWW) Click to edit Master text styles Ø Web of resources – Second level Ø Resources reference each other • Third level Ø Resources can be of many types – Fourth level (e. g. , documents, images, services, html pages) » Fifth level § URI identifies resources (Uniform Resource Identifier) § HTTP used to access resources 9 methods (a. k. a. verbs): GET, PUT , POST , DELETE , … HEAD, OPTIONS, TRACE, CONNECT, PATCH Autodesk Confidential Information

Click to edit SOAP Master title style § • SOAP stands for Simple Object

Click to edit SOAP Master title style § • SOAP stands for Simple Object Access Protocol Click to edit Master text styles – Second level • Third level § Protocol for exchanging structured – Fourth level information through Web Services » Fifth level § Relies on XML for its message format, and Application Layer protocols like HTTP or SMTP for message transmission Autodesk Confidential Information

Click to edit REST Master title style § • REST stands for Representational State

Click to edit REST Master title style § • REST stands for Representational State Transfer Click to edit Master text styles – Second level § REST is an architectural style that exploits HTTP • Third level protocol – Fourth level » Fifth level § Provides an easier way of data access comparing with SOAP § Good solution for interoperability between web services and mobile platforms or browsers Autodesk Confidential Information

REST Services Click to edit. Web Master title style Why REST? • Click to

REST Services Click to edit. Web Master title style Why REST? • Click to edit Master text styles REST is a lightweight alternative to SOAP – Second level • Third level SOAP: – Fourth level SOAP REST <? xml version="1. 0"? > » Fifth level <soap: Envelope xmlns: soap="http: //www. w 3. org/2003/12/soapenvelope"> <soap: Body pb="http: //www. adesk. com/memberdb"> <db: Get. Developer. Details> <db: Developer. ID>12345</db: Developer. ID> </db: Get. Developer. Details> </soap: Body> </soap: Envelope> http: //www. adesk. com/memberdb/Developer. Details/12345 Autodesk Confidential Information

SOAPMaster vs REST Click to edit title style SOAP • Supports only GET and

SOAPMaster vs REST Click to edit title style SOAP • Supports only GET and POST Click to edit Master text styles Ø – Second level Ø All data is in the xml message • Third level Resource to access – Fourth level Function to execute » Fifth level REST Ø Uses all HTTP verbs: GET, POST, PUT, DELETE, … Ø Resource is identified by URI Ø Function is identified by the HTTP verb Autodesk Confidential Information

Click to edit JSON Master title style § JSON (Java. Script Object Notation) is

Click to edit JSON Master title style § JSON (Java. Script Object Notation) is a • Click to edit Master text styles lightweight data exchange format – Second level § JSON is a text format easy for humans to read • Third level – Fourth level and write and fast for machines to parse and generate» Fifth level § One of the most popular exchange format in web services at the moment Autodesk Confidential Information

JSON vs XML Click to edit Master title style { • "Manufacturer": "ADN", Click

JSON vs XML Click to edit Master title style { • "Manufacturer": "ADN", Click to edit Master text styles "Name": "Steel", – Second level • Third level "Price": "100. 0" – Fourth level } » Fifth level <? xml version="1. 0" encoding="UTF-8" ? > <Manufacturer>ADN</Manufacturer> <Name>Steel</Name> <Price>100. 0</Price> Autodesk Confidential Information

Adding RESTMaster Support in WCF Click to edit title style [Service. Contract] public interface

Adding RESTMaster Support in WCF Click to edit title style [Service. Contract] public interface IMaterial. Srv { [Operation. Contract] [Web. Invoke( – Second level Method = "GET", Uri. Template = "/Material/{material. Name}", • Third level Response. Format = Web. Message. Format. Json)] – Fourth level Adn. Material Get. Material(string material. Name); » Fifth level [Operation. Contract] [Web. Invoke( Method = "POST", Uri. Template = "/Material", Request. Format = Web. Message. Format. Json, Response. Format = Web. Message. Format. Json)] bool Post. Material(Adn. Material material); } • Click to edit Master text styles Autodesk Confidential Information

Click to edit Master title style • Click to edit Master text styles Deployment

Click to edit Master title style • Click to edit Master text styles Deployment – Second level on the Cloud • Third level Azure Example illustrated… – Fourth level » Fifth level Autodesk Confidential Information

Click. Step to edit I - Azure Master project title style • Click to

Click. Step to edit I - Azure Master project title style • Click to edit Master text styles – Second level • Third level – Fourth level » Fifth level Autodesk Confidential Information

Click Step to 2 edit - Package Master. Creation title style • Click to

Click Step to 2 edit - Package Master. Creation title style • Click to edit Master text styles – Second level • Third level – Fourth level » Fifth level Autodesk Confidential Information

Click Stepto 3 edit - Azure Master Deployment title style • Click to edit

Click Stepto 3 edit - Azure Master Deployment title style • Click to edit Master text styles – Second level • Third level – Fourth level » Fifth level Autodesk Confidential Information

Click to edit Step. Master 4 - Testtitle style • Click to edit Master

Click to edit Step. Master 4 - Testtitle style • Click to edit Master text styles – Second level • Third level – Fourth level » Fifth level Autodesk Confidential Information

Getting Started withtitle Android Click to edit Master style programming • Click to edit

Getting Started withtitle Android Click to edit Master style programming • Click to edit Master text styles – Second level § Install Eclipse http: //www. eclipse. org/downloads/ • Third level – Fourth level » Fifth level § Install Android SDK http: //developer. android. com/sdk/installing. html § Get started with Android development http: //developer. android. com/guide/index. html Autodesk Confidential Information

Getting Started Click to edit Masterwith titlei. OS style programming • Click to edit

Getting Started Click to edit Masterwith titlei. OS style programming • Click to edit Master text styles – Second level § Install Xcode Downloadable from App Store Mac application • Third level – Fourth level Includes SDK and i. OS Simulator » Fifth level § Get started with i. OS development https: //developer. apple. com/devcenter/ios/index. action Autodesk Confidential Information

Click to edit Master title style • Click to edit Master text styles –

Click to edit Master title style • Click to edit Master text styles – Second level • Third level – Fourth level » Fifth level Autodesk Confidential Information