Support for All()/Any() in WCF Data Services 5.0

9th of April 2012 the new version of WCF Data Services was released with number 5.0 and support for V3 OData protocol. You can download this version from here. You can read more about all new features added to this release of Data Services on WCF Data Services Team Blog Most important features are Vocabularies Actions Spatial types Named streams Patch support Any() All() suppor…

By Mirek on (tags: Data Services, OData, WCF, categories: code)

Simple WCF. Hosting WCF service by Autofac in ASP.NET MVC 3

One of features of Autofac is that it can be used to host a WCF service. I have tried to host a WCF service within an already existing ASP.NET MVC 3 web application. The problem was that the service needed to use some resources which were managed by Autofac and was also used this MVC application. I spend few hours until I figure out what is going on and how to make it work toge…

By Mirek on (tags: Autofac, IoC, MVC 3, WCF, categories: code)

Simple WCF. RESTful and SOAP endpoint at one contract.

REST (Representational state transfer) web service is a service over HTTP with specific architecture. The REST is then an architectural style, which defines the rules of accessing resources exposed in the web. In principle the restful service exposes some sort of resource, for instance collection of entities, which can be easily accessed and changed from external client. To be …

By Mirek on (tags: REST, SOAP, WCF, web service, categories: code)

Simple WCF. The simplest configuration.

The power of WCF is that it can be used to any kind of communication. All known old transmission protocols are covered by WCF and can be totally replaced by it.   Unfortunately the drawback of this flexibility is complicated configuration in case when we want to do something not standard. In WCF 4.0 this has been a little simplified, so now when you want to do simple thing…

By Mirek on (tags: WCF, categories: code, web)

WCF Data Services performance

The main benefit of using WCF Data Services (formerly codename ) is that this is interoperable, which means it can be accessed from clients created in different technologies. Moreover standard WCF services offers the only exposed set of methods. Data Services, as implementation of OData protocol, offers the Resource to be queried and altered using HTTP methods. That’s are the p…

By Mirek on (tags: Data Services, OData, WCF, categories: architecture, code)

Application communication ways – WCF Data Services with EF Code First, WPF and WP7

Let’s assume there is an application database and the various client applications developed in Windows Presentation Foundation, Silverlight, Windows Phone 7 and ASP.NET MVC 3. The database is either MS SQL Server or MS SQL Server CE. Now the potential customer may use one or many of these applications/platforms so the connections to the database must be performed from all of th…

By Mirek on (tags: OData, WCF, WP7, categories: architecture, infrastructure)