This document provides an overview of key concepts in Windows Communication Foundation (WCF), including contracts, bindings, behaviors, and REST support. It discusses how WCF uses contracts to define service operations, data contracts for message types, and message contracts for message structure. It also covers common bindings for different transports, custom bindings, and behaviors for aspects like instancing and throttling. The document introduces REST principles supported in WCF like identifying resources with URIs and using HTTP verbs, and new features in WCF 4 like simplified configuration and WS-Discovery support.
6. Contratos
Describe las operaciones que el servicio
Servicio
realiza. Mapea tipos CLR (WSDL).
Describe la estructura de datos. Mapea tipos
Datos
CLR (XSD).
Define la estructura del mensaje. Mapea tipos
Mensaje
CLR (SOAP message)
18. Behaviors Overview
Implementan sem叩ntica del sistema
Para el desarrollador
Concurrencia
Instanciaci坦n
Transacciones
Impersonation
Para operaciones
Throttling
Metadata
21. REST
Acr坦nimo de REpresentational State Transfer
Es un estilo de arquitectura
Mejor uso de HTTP
Menor complejidad
Interoperable
22. Principios de REST
Identificar recursos por medio de URIs
Uso de verbos HTTP
Link resources
Presentaci坦n en m炭ltiples formatos (JSON/POX)
Comunicaci坦n Stateless
23. Identifica recursos con URIs
http://myservice/rooms
http://myservice/rooms(3)
http://myservice/Colors(red)
http://myservice/Transactions(1145001)
24. Verbos HTTP usados
Get: obtiene la representaci坦n de un recurso
Put: actualiza un recurso
Post: crea un nuevo recurso
Delete: elimina un recurso
27. REST en WCF
Basado en nuevos atributos
WebGet (Get)
WebInvoke (Post/Put/Delete)
Permite definir el tipo de Serializacion
JSON
XML
Soporte de streaming retornando un Stream
28. Nuevo en WCF 4
Simplificaci坦n de configuraci坦n
Activaci坦n en IIS (.svc opcional)
Soporte de WS-Discovery (udp based)
Soporte de Router
Bridging
Routing por contenido
Mejoras para REST
Pagina de ayuda
Integraci坦n con rutas de MVC
Caching
29. Referencias
A Guide to Designing and Building RESTful Web
Services with WCF 3.5
http://msdn.microsoft.com/en-us/library/dd203052.aspx
WCF REST Starter Kit
http://aspnet.codeplex.com/releases/view/24644
Windows Server AppFabric Training Kit
http://www.microsoft.com/download/en/details.aspx?id=7956
OData
http://www.odata.org/