Showing posts with label MUrl. Show all posts
Showing posts with label MUrl. Show all posts

Thursday, July 2, 2009

MService

Microsoft is developing DSLs for three .NET runtimes: MWeb (ASP.NET), MService (WCF) and MEntity (EF). Early MService build was presented at MIX conference on March.  The demo was very interesting, so I’ll write some details about it.

Building and testing MService at MIX was very easy:

“M” language (in one file): type, extent and service operations (Get, Post, Put, Delete, Options)

image

Deploying the file to inetpub/wwwroot catalog (IIS with MHttpHandler).

image

Testing: generated form on the service web page or client with MUrl (f.e Intellipad)

image

With the MService version we can easily build simple services. What about services with custom operations and logic?  I’m waiting for public CTP.

Wednesday, July 1, 2009

MUrl

The MUrl is a simple DSL to communicate with RESTful services. It was presented at MIX conference on March. Last time I have tested Microsoft sample with this language updated to May CTP. I’ll write some about it.

MUrl is very easy. Document included in the sample describes it well. If you want to know how to implement custom mode in Intellipad, look into the sources.

In order to execute MUrl statement, you should select it and press Ctrl+Enter.

MUrl1

Authentication is available optionally. You can define your credentials in Windows Credential Manager.

MUrl2

Now you can manage website content, for example your posts on twitter. I added and deleted some posts using Intellipad. When I tried posting I got an “Expectation Failed” error message. Solution of the problem you can find here.

MUrl3  

Download Oslo May CTP and MUrl example and have fun!