public void RequestBasedOnContract3() { CustomBinding b = CreateBinding(delegate(Message input) { // seems like security message property is not attached to the request. foreach (object o in input.Properties.Values) { if (o is SecurityMessageProperty) { Assert.Fail("there should be a SecurityMessageProperty."); } } return(null); }, true); IFoo foo = ChannelFactory <IFoo> .CreateChannel(b, CreateX509EndpointAddress ("stream:dummy")); foo.Bleh("TEST"); }