Accessing Web Services in Silverlight 4 Yavor Georgiev Program Manager Silverlight yavorg@microsoft.com
How do I access external data from Silverlight? If someone else owns the data How do I design my client to work with what’s there? If I own the data How do I design my service and client to get optimal richness and ease of development?
Someone else owns the data Limited choices cross-domain Yes/No transport HTTP format XML, JSON, RSS, SOAP message pattern request/reply interaction model
Someone else owns the data Cross-domain If service exposes policy, you’re OK If service doesn’t expose policy, consider OOB elevated app Format JSON, XML, RSS: REST/HTTP service like Facebook, Twitter SOAP: SOAP service like Bing or existing enterprise service WebClient/HttpWebRequest LINQ to JSON, DCJS LINQ to XML, XmlSerializer SyndicationFeed
Demo Local search app using REST and SOAP services
I own the data Lots of choices cross-domain transport HTTP/TCP format SOAP message pattern request/reply or duplex interaction model WCF or WCF RIA
I own the data Interaction model Forms over data Operation-centric transport: HTTP message pattern: request/reply Operation-centric transport: HTTP or TCP message pattern: request/reply or duplex WCF RIA Services CL09: Developing with WCF RIA Services Quickly and Effectively WCF Service HTTP-based request/reply binding PollingDuplex for HTTP-based duplex NetTcp for TCP-based duplex Silverlight app
Demo Video chat operation-centric app using a duplex message pattern
Takeaways How do I access external data from Silverlight? If someone else owns the data REST and SOAP are both supported If I own the data WCF RIA Services for “forms over data” apps WCF for “operation-centric” apps
Other Sessions CL07: Silverlight 4 Overview - What’s in Store for Silverlight 4? CL09: Developing with WCF RIA Services Quickly and Effectively CL05: Search Engine Optimization for Microsoft Silverlight FT50: Advanced Web Debugging with Fiddler
Call to Action Please submit an evaluation To participate in Silverlight research email devur@microsoft.com Download the bits: http://silverlight.net Send feedback and report bugs via our blog: http://blogs.msdn.com/silverlightws/contact.aspx
4/27/2019 1:18 AM © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
4/27/2019 1:18 AM © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. © 2009 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.