COM326: Web Services for XML Programmers Doug Purdy Lead Program Manager Connected Systems Division
Meta-Talk Goals Show the wonderful XML support in WCF Show how to support non-SOAP protocols Show off XLinq in the context of WCF Non-Goals Show WCF interoperability (take our word for it) Drill into metadata extensibility Demonstrate “pull-mode” messaging
AddressContract WCF in a Nutshell ServiceClient Message Where?How?What? ABC ABC Binding Architectural Commitments Common Language Runtime Extensible Markup Language
WCF Message & Typed Views Featuring some XLinq magic!
Type Validation There are two types of validation CLR: XmlFormatter/XmlSerializer XSD: XmlValidatingReader Serializers always do validation Validation is done against the CLR type This is not the same as schema validation WCF enables schema validation Although you need to write some code…
Schema Validation Hmm… Were you suppose to send that?
Protocol Integration XML solves more problems then it causes Metadata allows better dev experience SOAP enables rich extensibility & security Be pragmatic – use what you need!
REST & POX WCF is a big, big tent – all XML welcomed
Transformation 12 Street Inbound Message 12 Street Expected Message Transformation [DataContract] public class person { [DataMember] int id; [DataMember] Address address; } public class Person { int id; string street; int zip; } SerializeDeserialize Optional – for you
Transformation Can’t you just put this data in that type?
Wrapping Up Key Takeaways WCF is the XML Communication Platform! All protocols are welcomed! Resourcesmicrosoft.public.windows.developer.winfx.indigo
© 2005 Microsoft Corporation. All rights reserved. This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.