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

Chapter 6. WCF Recipes

In this chapter we will cover:

  • Implementing custom binding in WCF
  • Creating a WCF REST service
  • Handling exceptions using FaultContract and FaultException
  • Uploading files using Stream
  • Securing a service using role-based security

Introduction

Windows Communication Framework (WCF) is the base of Service Oriented Architecture in .NET 3.5 and higher. The focus of this chapter will be on tasks such as uploading files and implementing a REST service, among others, using WCF. We will start with creating custom bindings for a ping service. Then we move on to implementing WCF REST service. The next recipe will tell you how to implement Inversion-of-Control using Dependency Injection. The last two recipes will deal with a service that can ...

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