Download presentation
Presentation is loading. Please wait.
Published byMaría del Rosario Cárdenas Modified over 5 years ago
1
Accessing Web Services in Silverlight 4
Yavor Georgiev Program Manager Silverlight
2
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?
3
Someone else owns the data
Limited choices cross-domain Yes/No transport HTTP format XML, JSON, RSS, SOAP message pattern request/reply interaction model
4
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
5
Demo Local search app using REST and SOAP services
6
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
7
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
8
Demo Video chat operation-centric app using a duplex message pattern
9
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
10
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
11
Call to Action Please submit an evaluation
To participate in Silverlight research Download the bits: Send feedback and report bugs via our blog:
12
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.
13
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.
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.