Author Archives
Senior Software Engineer
-
Managing State and Service Instances in a WCF service – The case of a ShoppingCart : Part 2
This post will continue our discussion about managing state and service instances in a WCF service. In a previous post we created a WCF service holding a shoppingCart list private instance variable, where clients consuming that service could store their… Read More ›
-
Edit GridView control using SqlDataSource and Template fields in ASP.NET 4.5
In a previous post we saw how easy is to bind data to a GridView control, without using a build in Data Sources. In this post we will use an SqlDataSource control which will retrieve some data from a database… Read More ›
-
Managing State and Service Instances in a WCF service – The case of a ShoppingCart : Part 1
We have seen in previous posts how to host and consume WCF services where the client used to invoke some operations of the service. These operations though, were totally independent and no state was needed to be kept. The client… Read More ›
-
Authenticate WCF clients using the ASP.NET Membership Provider
When using a WCF services over the internet, you should always consider security issues such as Authentication or Authorization. Authentication generally speaking, answers the question “Who are you” and Authorization answers the question “What are your privileges”. Take an example:… Read More ›
-
Call a stored procedure using the Entity Framework
I am going to show you how easy is to call a stored procedure using the Entity Framework. First of all you need to create the stored procedure which you want to call (in case it doesn’t already exist), in… Read More ›
-
Secure a TCP – WCF service at the Message level
When building and using WCF services to exchange messages over the wire, you must always take into account security. In one line, security is concerned with protecting users running client applications, services and the messages passing between them. These messages… Read More ›
-
Throwing and catching Strongly Types SOAP Faults in WCF
It’s common scenario, a call to WCF service to fail. The service call can fail for thousands of reasons such as network problems, database crushes or even runtime logic errors. In these cases, the client called the service would appreciate… Read More ›
-
Host and consume a WCF service over TCP
In a previous post we have seen how to build and deploy a WCF service in IIS and later consume that service, via a console client application. This service though, was build under the default configurations, that is to use… Read More ›
-
Create and consume WCF service after hosting it in IIS
This article will guide you through, to create a WCF service, host it in your local IIS and consume the service using a client console application. The data are going to be retrieved from an SQL Server 2012 using the… Read More ›
-
Bind GridView Control at Runtime
There are times when you don’t want to configure the GridView’s control DataSource property to point to some build in types of data sources, such as EntityDataSource or SqlDataSource. You know though and have access to what kind of data… Read More ›