Archive for the 'SOA' Category

WURFL and SSDS, part I

June 28th, 2008

A friend of mine asked me for some help on mobile device detection.  He introduced me to WURFL, a giant database contains mobile devices information in xml format, in a single file.

First thought came to mind was:  how do I store this thing in a database?  I Googled around, found a couple of .NET libraries working against WURFL, but they all directly working against the xml.  Queries are done against memory objects.

To store this thing in SQL 2005, would need to define a schema, too much work.

I just got access to the SSDS beta, what a perfect match:

  • No need to define any schema.
  • WURFL would be an Authority.
  • Devices would be the container.
  • Each device would be an Entity in the Devices container.
    • device_Id will be the entityId
    • device.Properties will hold the user_agent, fallback_id, and all the capabilities.

Within 30 minutes, I whipped up a console application, parsed the 8MB xml, and stored all the 5755 devices into SSDS.

Next, I will write a web service to query the data.

Posted in .NET, Mobile, SOA, SSDS | No Comments »

WCF and Silverlight on IIS setup

March 20th, 2008

Both involve MIME type setup on IIS.

1. WCF:  If your WCF does not work on your production IIS server, most likely the .svc MIME type is not registered, I used the following command line to fix it:

c:\Windows\Microsoft.NET\Framework\v3.0\Windows Communication Foundation\ServiceModelReg -i

2. Silverlight, you need to register the .xap MIME type, for IIS 7, simply using the following command line:

C:\windows\system32\inetsrv\appcmd set config /section:staticContent /+[fileExtension='.xap',mimeType='application\x-silverlight-app']

For both cases, the "C:\Windows\" directory path depends on where your OS is installed.

Posted in ASP.NET, SOA, Silverlight | No Comments »

Sliverlight Applications and Web Services

March 14th, 2008

I am trying to write my first Silverlight application.  I need to do data binding, I already have a set of business objects written in an existing project.  Naturally, I want to reference that project and reuse the business objects.  But VS 2008 won’t allow me to reference the project, says I can only reference Silverlight projects.  Fine, how about reference the .dll then?  Same thing, VS 2008 complaints the .dll is not built with Silverlight.  Why?

It clicked in 10 minutes later while trying different things:  a Silverlight application is a client side application, it should never directly using business objects, which sit on the server side.  The server side objects and operations should be exposed as services, which then can be consumed by Silverlight applications.

Posted in ASP.NET, SOA, Silverlight | No Comments »

Microsoft SQL Server Data Services

March 5th, 2008

I just got access to Amazon SimpleDB last Friday, yet get a chance to look at it.  Today, Microsoft announced Microsoft SQL Server Data Services (MSSDS).

“The service is designed for developers building Web-based applications that need a scalable, easily programmable and highly available utility-based data store.”

You can pre-register for the beta here.

I am anxious to take a look at this, since I already know a lot about MS SQL Server, I might use this a lot more than Amazon SimpleDB.

Posted in SOA, SQL | No Comments »



Permalinks By IIS Permalinks