Friday, March 27, 2009

WCF CustomBinding Equivalent to WSHttpBinding

@YaronNaveh

It is sometimes useful to build a WCF CustomBinding equivalent to some other binding. This allows a richer set of customizations. Here is the CustomBinding equivalent to the WSHttpBinding defaults (windows authentication):

Update: Convert bindings automatically using the WCF BindingBox.


<customBinding>
   <binding name="MyBinding">
     <textMessageEncoding />
     <security authenticationMode="SecureConversation">
       <secureConversationBootstrap authenticationMode="SspiNegotiated" />
     </security>
     <httpTransport />
   </binding>
</customBinding>

@YaronNaveh

What's next? get this blog rss updates or register for mail updates!

2 comments:

C said...

You just saved me a world of hurt with one snippet; thank you!

Yaron Naveh said...

Sure, you might also want to check this:

http://webservices20.blogspot.com/2009/08/bindingbox-convert-wcf-bindings.html