Presentation is loading. Please wait.

Presentation is loading. Please wait.

Aplicaciones Distribuidas Manuel Zegarra Sánchez Microsoft Certified Application Developer.

Similar presentations


Presentation on theme: "Aplicaciones Distribuidas Manuel Zegarra Sánchez Microsoft Certified Application Developer."— Presentation transcript:

1 Aplicaciones Distribuidas Manuel Zegarra Sánchez Microsoft Certified Application Developer

2 Microsoft Certified Application Developer -.NET Framework Microsoft Certified Professional 10 Años de experiencia desarrollando soluciones Microsoft en diferentes sectores (Transporte, salud y financiero.) Diseño de aplicacionas SOA, distribuidas y alta disponiblidad. Experiencia

3 Objetivos Comprender la arquitectura de una aplicación distribuida. Comprender el modelo de programación WCF. Diseñar servicios WCF. Definir contratos WCF.

4 Agenda ¿Qué son las aplicaciones distribuidas? Arquitectura de WCF Programando con WCF – Demo WCF / SOA – Demo Preguntas

5 Aplicaciones Distribuidas

6 Caso - Talma Menzies S.R.L

7 ¿Qué son las aplicaciones distribuidas? Son aplicaciones que trabajan o coordinan con otras aplicaciones para brindar algún servicio. Las diferentes aplicaciones que coordinan entre si, en la mayoría de casos, se encuentran en diferentes plataformas.

8 Windows Communication Foundation Es un modelo de programación unificado para la construcción de aplicaciones distribuidas en plataforma windows. Unifica Orientado a servicios Integración

9 Interop with other platforms ASMX DistributedTransactions Enterprise Services WS-*ProtocolSupport WSE MessageQueuing System.Messaging ExtensibilityPerformance.NET Remoting Unified Programming Model Modelo de programación unificado

10 Inside View - WCF Service Model Service Contracts Data Contracts Message Contracts Messaging Message class Control dispatch

11 Outside View ClientService Message ABCABC ABC AddressBindingContract (Where)(How)(What) = Endpoint

12 Runtime Model Proxy/Dispatch and Channel Layers Proxy Client Protocol Encoder Transport Dispatcher Service Protocol Encoder Transport

13 Agenda Why Windows Communication Foundation? WCF Architecture Programming WCF – Demo WCF and SOA – Demo Questions

14 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. Programming WCF Demo

15 Hosting Options Windows Form Console Application Windows Service Internet Information Server Windows Activation Services

16 app/web.config Client Proxy.cs Service Client Configuration CBA CBA A BC GetMetadata WSDL A BC svcutil.exe

17 Data Contracts, Service Contracts [DataContract] public class Order { [DataMember] public int orderID; [DataMember] public int partNumber; [DataMember] public int price; [DataMember] private string info; } [DataContract] public class Query { [DataMember] public int orderID; } [DataContract] public class Info { [DataMember] public string info; } [ServiceContract] public interface IOrderService { [OperationContract] void Process(Order o); [OperationContract] Info GetInfo(Query q); }

18 ServiceContract ties together multiple operations OperationContract ties together Message Contract, Action Describing Message Exchanges [ServiceContract] public interface MyContract { [OperationContract( Action="urn:DoIt", ReplyAction="urn:Done")] MyReply DoIt(MyRequest request); wsdl:portType wsdl:operation

19 Typed Messages [MessageContract] public class MyRequest { [MessageBody] public UnitInfo Info; [MessageBody] public bool IsInUse; } [DataContract] public class UnitInfo { [DataMember] public int ID; [DataMember] public string Name; } wsdl:message wsdl:part xsd:element

20 Untyped Messages Actions control Dispatch “*” matches all actions [OperationContract( Action = “Foo”, ReplyAction = “FooResponse”)] Message Foo(Message request); [OperationContract(Action = “*”)] void Dispatch(Message request);

21 Service Configuration

22 Standard Bindings Interop Security Session Transactions Duplex Streaming basicHttpBinding BP 1.1 T wsHttpBindingWS T | S XX wsDualHttpBindingWS XXX netTcpBinding.NET XXXO netNamedPipeBinding.NET XXXO netMsmqBinding.NET XX netPeerTcpBinding.NET X T = Transport Security | S = WS-Security | O = One-Way Only

23 Agenda Why Windows Communication Foundation? WCF Architecture Programming WCF - Demo WCF and SOA – Demo Questions

24 WCF and SOA API Style Business Services Interfaces look very similar to Object Oriented interfaces Inputs are defined in terms of multiple parameters Outputs are typed as return values Intuitive to design. ServiceContract, OperationContract, DataContract and DataMember are WCF tools for building these types of business services. Message design is implicit

25 WCF and SOA Activity Style Business Services Inputs are a single message Outputs are a single message ServiceContract, OperationContract, MessageContract, MessageBodyMember, MessageHeader are WCF tools for building these types of business services. Message design is explicit Message design requires some thought. Related activities should use the same messages for efficiency with business processes

26 WCF and SOA Business Processes The vocabulary of the business Collection of activities which may be local or Activity style business services May be long running May contain human workflow All inputs and all outputs are defined as messages BizTalk Server 2006 and Workflow Foundation are examples of tools that can be used to assemble Business Processes from existing activities

27 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. Message Contract Demo

28 For More Information ….NET Framework Technology Samples.NET Framework Technology Samples WCF on the Microsoft Developer Network WCF on the Microsoft Developer Network Microsoft.NET Framework Community Microsoft.NET Framework Community Windows Vista Technologies Windows Vista Technologies

29 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. Questions

30 © 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary. Appendix

31 Inside Bindings Transport IPCMSMQ Custom TCPHTTP Protocol Encoders Binary Text Custom.NETTX Custom SecurityRM Binding HTTP Text TXSecurityRM

32 ASMX/WSE3 WCF WCF ASMX/WSE3 Integration using Bindings MSMQ WCF WCF MSMQ WS-* Protocols MSMQ Protocol MSMQ Binding Http/WS Binding Java WCF WCF Java WS-* Protocols Http/WS Binding WCF WCF WS-* Protocols * Binding

33 Client Service Behaviors Client Behavior Service Behavior Be CBA CBA CBA A BC

34 Client Service Example: Security Be Bindings Insert Claims in Messages Behaviors Implement Security Gates CBA CBA CBA A BC

35 Client Service Example: Transactions Be Bindings Flow Transactions Behaviors AutoEnlist and AutoComplete CBA CBA CBA A BC

36 Features Summary AddressBindingBehaviorContract HTTP Transport TCPTransport NamedPipe Transport MSMQ Transport Custom Transport WS-Security Protocol WS-RM Protocol WS-Coord Protocol Duplex Channel Custom Protocol net.tcp://... net.pipe://... net.msmq://... xxx://... ThrottlingBehavior Metadata Behavior Error Behavior Custom Behavior Instancing Behavior Concurrency Behavior Transaction Behavior Security Behavior Request/ Response One-Way Duplex net.p2p://... PeerTransport Externally visible, per-endpoint Opaque, per-service, endpoint, or operation

37 WCF and SOA System of Record, Business Services and Governance Business Services (all types) XSD Schemas XSLT Transformations Policies (all types) Custom Taxonomy Message Contracts


Download ppt "Aplicaciones Distribuidas Manuel Zegarra Sánchez Microsoft Certified Application Developer."

Similar presentations


Ads by Google