code

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

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

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…

code

Simple WCF. RESTful and SOAP endpoint at one contract.

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

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 …

code

Simple WCF. The simplest configuration.

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

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.

 

architecture

WCF Data Services performance

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

The main benefit of using WCF Data Services (formerly ADO.NET Data Services, codename "Astoria) 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 …

architecture

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

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

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 these clients.
The following scenarios are considered. I tried to list some points that should be considered when choosing particular connection approach. The pictures represents the general architecture of the approach.