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"/> 

No comments:

Post a Comment