Welcome to MSDN Blogs Sign in | Join | Help

Browse by Tags

All Tags » Bindings » Answers   (RSS)

Context Channel Shapes

What channels can be used in a context binding? The primary limitation for building a context binding is that the channel stack has to have the right shape. The context exchange protocol used by a context binding requires that the first invoked operation

Overriding Protection for IPSec

How do I use username credentials with IPSec? I'm told that I need to turn on security but my connection is already secure. WCF only permits username tokens to be transmitted over a binding that's secure. If a username and password are transmitted without

Deriving from Bindings

When packaging up a collection of settings, how do I know whether to use a CustomBinding, extend the Binding class, or extend one of the standard binding classes? In most cases this should be easily decidable by asking at most two questions. The first
Posted by Nicholas Allen | 1 Comments
Filed under: , ,

Supporting Multiple Security Mechanisms

How do I write a service that gives clients the option to choose between different security mechanisms for protecting a service call? For example, how can I allow clients to choose between certificates and passwords? I think that if the example choice

Interfaces for GetProperty, Part 2

I've done a bit of grouping for the remaining binding elements as there are fourteen non-transport binding elements that I'm covering in this list. I've pointed out the ones that respond to a type with GetProperty on the base class as opposed to repeating

Interfaces for GetProperty, Part 1

This is more of a reference than anything else. People have asked me what interfaces do something when used with GetProperty on a binding element. Of course, a custom implementation can do whatever it wishes in its GetProperty, so I can only tell you

Preventing Anonymous Access

How do I prevent clients from accessing my service anonymously? I've changed the settings in IIS from Anonymous Access to Integrated Windows Authentication. However, now I'm getting the error message: "Security settings for this service require 'Anonymous'

Responding to GetProperty

I've created a custom implementation of GetProperty for my binding but now I'm getting errors when I go to use the channels. Why is the validation for these channels failing? This is an implementation problem that I've talked about in the past. There

Bindings for Workgroups

What's the fastest binding for securely communicating over an intranet? How about if the client and server don't share a domain? A lot of attention gets paid to Internet configurations, where HTTP rules the world. HTTP is so dominant in that environment

Customizing a Metadata Resolver

I'm trying to use a metadata resolver but the metadata endpoint requires a custom binding. How do I override the binding used by MetadataResolver? The overloads on MetadataResolver are pretty strange, but you can pick any of the ones that take an instance
Posted by Nicholas Allen | 2 Comments
Filed under: , ,

MSMQ: Net vs Integration

Why are there two MSMQ bindings? This is an easy question to answer: there are two bindings for MSMQ because they do different things. Go ahead and take a look at each of the bindings. The NetMsmqBinding looks like a normal binding with an MSMQ transport,

ListenUriBindingElement

The story from yesterday: there is an important setting for composite duplex that is only settable through the binding context. Unfortunately, proxy clients automatically create and use their own binding context so there is no convenient time to poke

Manually Injecting a ListenUri

The ListenUri is a three-part setting on the BindingContext that gives the server-side address of a connection. The ListenUri has a base and a relative address, plus a mode switch. The mode switch controls whether the uri should be used as-is or whether

Building a Secure Composite Duplex

I'm getting this error message even though I have security enabled for my service: Unhandled Exception: System.InvalidOperationException: The response message must be protected. This is required by an operation of the contract ('ICalculator', 'http://Microsoft.ServiceModel.Samples').

Modifying the Binding of a Service

It's occasionally useful to be able to replace the binding being used for an existing service host. For example, if the binding was loaded from configuration, you may then want to have your code examine the binding and modify some of the settings. This
Posted by Nicholas Allen | 2 Comments
Filed under: , ,
More Posts Next page »
 
Page view tracker