MAC vendor lookup REST API

The RC version of ASP.NET MVC 4 was released some weeks ago with a lot of new features which you can read at its homepage http://www.asp.net/mvc/mvc4. One of the most interesting one is ASP.NET Web API which provides an interface to make a RESTful web service and can be accessed from any devices like computer, smart phone, tables… through HTTP protocol. REST (Representational State Transfer) has emerged over the past few year as a predominant design model for web service thanks to its simpler style in comparison to SOAP or WSDL. For example, my colleague has always complained about our SOAP web service when he consumes it on Android platform with plenty of XML parsing and DOM manipulation.

Continue reading MAC vendor lookup REST API

Windows Phone – Use REST WCF Service

Today when I play around with development in Windows Phone 7. I would like to check if I can access WCF REST Service which I discussed before in this post http://hintdesk.com/wcf-silverlight-access-wcf-rest-services-with-silverlight/ . To start with the development in Windows Phone 7 you need to download set of development tools here http://www.microsoft.com/downloads/details.aspx?FamilyID=2338b5d1-79d8-46af-b828-380b0f854203&displaylang=en . This set contains of
– Visual Studio 2010 Express for Windows Phone CTP
– Windows Phone Emulator CTP
– Silverlight for Windows Phone CTP
– XNA 4.0 Game Studio CTP
This packet is about 350 MB and can be installed parallel with Visual Studio 2008 SP1 and .Net Framework 3.5. When I try to move the example of the old post to Windows Phone 7, I think it must be very simple because the old example bases on Silverlight and Windows Phone 7 uses Silverlight as its default template and I am right. During the moving, I just need to copy and paste the code behind without needing to change anything. However some of components in normal Silverlight are not available, for example Label and DataGrid. The label can be easily replaced by a TextBlock but we need more work to make a control to replace DataGrid. I make a snapshot of available controls in image below

Continue reading Windows Phone – Use REST WCF Service