Silverlight Experiment 1 – Web Services
by ChrisH on Jan.25, 2010, under Silverlight
I’ve been playing around with Silverlight recently and thought this would be an interesting exercise. The widget below demonstrates how Silverlight can be used in conjunction with a web service and SQL Server DB to create extremely powerful web apps. (Note that the Silverlight plugin is required to see the widget).
See if you can create a new account and log in…
So what’s going on behind the scenes? Well there are 3 seperate elements to the program:

In this case we have an SQL Server db on our server that holds the login details, and a .net web service on the same server that has the relevant priveleges set up to read & write to the db. The web service also has a public interface defined in a .asmx file, which we then reference in the Silverlight client itself. By adding the reference we can then access the web service’s methods and classes. At runtime our function calls are communicated to and from the service using SOAP, and the relevant class data is serialised and sent for us transparently by .net.
What this gives us is a highly portable, OS independent, platform for deploying extremely interactive applications (or games). The biggest hurdle to reaching the users at the moment is still the number of people who haven’t installed the Silverlight plugin (Flash still has the upper hand in that respect), but this could still make an excellent platform for games on the web.



2 Trackbacks / Pingbacks for this entry
January 26th, 2010 on 3:22 pm
[...] ChrisH on Jan.26, 2010, under Uncategorized After the previous Silverlight experiment I thought it might be interesting to try to use Flash as a client whilst accessing the same .Net [...]
January 28th, 2010 on 9:22 am
[...] ChrisH on Jan.28, 2010, under Silverlight I wanted to build on the earlier Silverlight experiment by adding some sort of functionality, and this is the result. It’s a proof-of-concept file [...]