The .NET Endpoint

Blog by the .NET and AppFabric teams about WCF and WF development, deployment, and management

"Paste XML as Types" in REST Starter Kit

"Paste XML as Types" in REST Starter Kit

  • Comments 2

Cross-posted from the Silverlight Web Services Team Blog. 

Just a quick announcement here of a release that will be interesting to Silverlight developers who want to access REST services. The WCF REST Starter Kit Preview 2 is now out, go grab it at http://msdn.com/wcf/rest. The release gives you a polished install/uninstall experience, so don't be afraid to try it on your box, it won't muck it up like "preview" software so frequently does.

This release gives you one interesting client-side feature that you may have heard me or Eugene speak about: Paste XML as Types. It's a VS menu item which helps you use XmlSerializer with REST services. Frequently these services use human-readable documentation to describe the XML shape, and it is difficult to hand-code a type to use with XmlSerializer, especially when the XML instance is complex. For example check out this sample XML response from the Yahoo BOSS API. With this new feature it takes one click to generate the type:

Using Paste XML as Types with Yahoo BOSS API

Another interesting feature in the release is HttpClient - a sort of specialized WebClient - which can be used to programmatically access REST services using an extensible model for sending HTTP requests and processing HTTP responses. The model enables you to complete common HTTP/REST development activities required to consume an existing service in a fraction of the time you normally spend. Some convenient time-savers include query string support (build URIs as name/value pairs) and serialization support (easily plug in types generated with Paste XML as Types to read the response).

Unfortunately in this release the starter kit only contains a .Net version of HttpClient, which will not compile in Silverlight. We are considering porting this prototype to Silverilght, and if you get a chance to try it on .Net, please let us know of any feedback you have.

Cheers,
Yavor Georgiev, Program Manager
Connected Framework Team

 

  • SOAAgents:当网格遇上SOA在云中做一小时测试为什么我们要放弃Subversion如何使用VMDKtoVHDConverter转换虚拟硬盘?谈表达式树的缓存(3):使用...

  • SOA Agents:当网格遇上SOA 在云中做一小时测试 为什么我们要放弃Subversion 如何使用VMDK to VHD Converter转换虚拟硬盘? 谈表达式树的缓存(3):使用前缀树 Unexpected

Page 1 of 1 (2 items)