HemiGames.com – Developer Blog

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

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...

Archives

All entries, chronologically...