O'Reilly logo

.NET Framework 4.5 Expert Programming Cookbook by A.P. Rajshekhar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementing custom binding in WCF

In WCF, binding dictates many aspects such as the protocol being used, the size of the data/payload, and so on. The default binding is based on HTTP and the default values provided will work well in most of the scenarios. However, there may be cases where the default HTTP binding may not work for you. The scenario can be anything from a need to use TCP instead of HTTP to a requirement that needs a specific Web Service Security version to be used. For such scenarios, custom binding comes in handy.

In this recipe, we will create a service that will check whether the SQL Server is up or not. The service will use custom binding to set up the protocol and the encoding to be used for communication between the service ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required