Using WCF with non-microsoft clients

The default wsdl that WCF creates isn't very friendly for human's and other non-microsoft clients to read. To remedy this you can intsall WCFExtras:

To use it, in your endpoint declaration add a "behaviorConfiguration" element with a name something like "WsdlRedirect". Then add an endpointBehaviors declaration something like this:
        <behavior name="WsdlRedirect"> 
          <wsdlExtensions location="" 
                          singleFile="True" /> 
And add an extension under system.serviceModel like this: 
        <add name="wsdlExtensions
             type="WCFExtras.Wsdl.WsdlExtensionsConfig, WCFExtras, Version=, Culture=neutral, PublicKeyToken=null"/> 


Popular posts from this blog

ToMethodObject Refactoring

How to unlock a file in Team Foundation Server(TFS)

Show/Hide formatting text in MS Word 2010