Note that there are some explanatory texts on larger screens.

plurals
  1. POWhat web service framework to choose for .NET
    text
    copied!<p>We have a Silverlight application which consumes existing WCF Ria service. Now we are going to write new front-end application using HTML/JavaScript. Obviously, WCF Ria Services is not the best option to consume by JavaScript client, that's why we need to decide what to choose. I'm looking at <a href="http://www.asp.net/web-api" rel="nofollow noreferrer">ASP.NET Web API</a>, <a href="http://www.odata.org" rel="nofollow noreferrer">OData</a> and <a href="http://www.servicestack.net" rel="nofollow noreferrer">ServiceStack</a>. Personally, I like the transparency of ServiceStack but OData supports many useful features out-of-the-box. Framework of my dream does the following:</p> <ul> <li>Handles different serialization formats.</li> <li>Plays nicely with others (there should not be a problem to consume service from non-ms-tenchnologies-based application).</li> <li>Allows to filter data like <a href="http://www.odata.org/documentation/odata-v2-documentation/uri-conventions/#45_Filter_System_Query_Option_filter" rel="nofollow noreferrer">OData $filter</a> but not particularly using its syntax, any other would be acceptable.</li> <li>Allows to expand object navigational properties like <a href="http://www.odata.org/documentation/odata-v2-documentation/uri-conventions/#46_Expand_System_Query_Option_expand" rel="nofollow noreferrer">OData $expand</a>.</li> <li>Implements RESTful services with clean URIs and correct HTTP methods mapping.</li> </ul> <p>Can I achieve those with ServiceStack? Or maybe some other framework not mentioned here?</p> <p><strong>Update</strong></p> <ul> <li>For navigational properties expanding (or hiding) one may refer to <a href="https://stackoverflow.com/questions/14858641/how-to-omit-get-only-properties-in-servicestack-json-serializer/14859968#14859968">this answer</a></li> <li>For query serialization see <a href="http://linq2rest.codeplex.com" rel="nofollow noreferrer">linq2rest</a> project</li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload