WCF/WF - how is silverlight related to WCF

Asked By madhu krishna
14-Oct-11 09:34 AM
i am working on wcf and i want to know is it must to learn silverlight for user interface design ? how good its related to each other?
  Reena Jain replied to madhu krishna
14-Oct-11 09:39 AM
HI,

Yes you are right. The WCF Data Services client library for Silverlight generates HTTP requests to a data service that supports the OData and transforms the data in the OData response feed into objects on the client. The two main classes of the client library are the DataServiceContext class and the DataServiceQuery<TElement> class. The DataServiceContext class encapsulates operations that are executed against a specified data service. OData-based services are stateless. However, the DataServiceContext maintains the state of entities on the client between interactions with the data service. This enables the client to support features such as change tracking and identity management. The DataServiceQuery<TElement> class represents a query against a specific entity set. For more information, see Using a Data Service in a .NET Framework Application (WCF Data Services). For a live example of an application that consumes a feed from the Northwind sample data service, see the WCF Data Services QuickStart for Silverlight

To get started fire up Visual Studio and start a new Silverlight 3.0 project. In order to use Silverlight 3.0 you will need the Silverlight 3.0 SDK installed. Once you have the new Silverlight application up and running you should have two solutions up and running, one with the Web host and one with the Silverlight XAML files. Right click on the Web project and choose Add|New Item and choose WCF Service.

these links will clear your doubts
http://www.dotnetcurry.com/ShowArticle.aspx?ID=208
http://chakkaradeep.wordpress.com/2008/05/31/silverlight-and-wcf/
  Riley K replied to madhu krishna
14-Oct-11 11:27 AM


Microsoft WCF RIA Services simplifies the traditional n-tier application pattern by bringing together the ASP.NET and Silverlight platforms.

RIA Services provides a pattern to write application logic that runs on the mid-tier and controls access to data for queries, changes and custom operations. It also provides end-to-end support for common tasks such as data validation, authentication and roles by integrating with Silverlight components on the client and ASP.NET on the mid-tier.

To learn more refer this link


Regards
  Neha Garg replied to madhu krishna
14-Oct-11 01:37 PM
Hi Madhu Krishna,

The relation between Silverlight and WCF is RIA Services.

RIA Services already is a WCF service. It's just configured to work specifically with Silverlight (using a binary endpoint). If it is feasible for your development on the other platform to use the same methods and entity types, you can simply extend the configuration and expose SOAP or JSON endpoints that offer more compatibility.

Click on below link, for d short introduction to the concepts.
http://johnpapa.net/exposing-soap-odata-and-json-endpoints-for-ria-services-silverlight-tv-26
  Suchit shah replied to madhu krishna
15-Oct-11 02:27 AM
In Silverlight, we often come across a very common requirement to consume Cross Domain Services. In order to support Cross Domain Services in Silverlight, we have to add 'Cross Domain Policy' file at the root of the web server. But if that Service is hosted in a Console Application or a WPF Application or a Windows Service, then how do we go about it? Where do we look for the Policy file?

WCF RIA Services simplifies the development of n-tier solutions for Silverlight applications by enabling you to coordinate application logic between the server project and the client project. RIA Services provides framework components, tools, and services that make the application logic on the server available to the client without requiring you to manually duplicate that programming logic. This QuickStart shows you how to use RIA Services to display data from a database, restrict data modifications to authenticated users, and update data.

ne of the most beautiful things about the Windows Communication Foundation (WCF) is that it's a completely streamlined technology.  When you can provide solutions to myriad of diverse problems using the same principles, you know you're dealing with a work of genius.  This is the case with WCF.  With a single service implementation, you can provide access to ASMX, PHP, Java, TCP, named pipe, and JSON-based services by add a single XML element for each type of connection you want to support.  On the flip side, with a single WCF client you can connect to each of these types of services, again, by adding a single like of XML for each.  It's that simple and streamlined.  Not only that, this client scenario works the same for both .NET and Silverlight.

In this document, I'm going to talk about how to access WCF services using Silverlight 2 without magic.  There will be no proxies, no generated code, no 3rd party utilities, and no disgusting "Add Service Reference" usage.  Just raw WCF.  This document will cover WCF connectivity in quite some depth.  We will talk about service setup, various WCF, SOA, and Silverlight paradigms, client setup,  some security issues, and a few supplemental features and techniques to help you aide and optimize service access.  You will learn about various WCF attributes, some interfaces, and a bunch of internals.  Though this document will be in depth, nothing will ever surpass the depth of MSDN.  So, for a more full discussion on any topic, see the WCF documentation on MSDN.

Even though we're focusing on Silverlight, most of what will be explained will be discussed in a .NET context and then applied to Silverlight 2.  That is, instead of learning .NET WCF and Silverlight WCF, you will .NET WCF and how to vary this for Silverlight.  This comparative learning method should help you both remember and understand the concepts better.  Before we begin, though, let's begin with a certain WCF service setup.  After all, we you don't have a service, we can't talk about accessing it.



http://www.netfxharmonics.com/2008/11/Understanding-WCF-Services-in-Silverlight-2
http://www.silverlight.net/learn/advanced-techniques/wcf-ria-services/wcf-ria-services-(silverlight-quickstart)
http://www.dotnetcurry.com/ShowArticle.aspx?ID=208
Create New Account
help
ANN: Bricksoft IM(MSN) SDK For .NET Framework / .NET Compact Framework released! Windows 7 IM SDK For .NET Framework / .NET Compact Framework provide connectivity with the MSN Messenger service. The library is built in C# and can
data connection of .net Framework & .net Compact Framework .NET Framework Hi, I'm planning to create a database apllication in C# using .NET Framework. But I would also like to create a .NET Compact Framework application where it shares
which net framework version can I uninstall ?Hi, Windows 7 I have the following version of .net framework on my pc : .NET Framework 1 .NET Framework CRT .NET Framework WinForms .NET Framework 2 .NET Framework ASP .NET .NET Framework CA Dr
using dll with C# asp.net application .NET Framework Hello! Assume I have four C# asp.net application running on the same computer. These four C# asp.net application is using two dll named a.dll and b.dll Assume also that these four
net framework sp1 keeps loading on top of .net framework .NET Framework A week ago I my computer was running slowly & my uniblue power suite informed me I did. After I had cleaned my registry with uniblue registry I noticed that my .net framework 1.1 was showing nil in my add & remove programs. I then tried to re