title: WCF Service not publishing the wsdl
body: <p>I am pretty new to WCF Services but I never got my head around the bindings and all that. The service I have right now, works fine if tested in WCFTestClient but does not expose WSDL for other applications to use. I am not sure how it is done. Here is the code:</p>
  
  <pre><code>&lt;system.serviceModel&gt;
  &lt;behaviors&gt;
    &lt;serviceBehaviors&gt;
      &lt;behavior&gt;
        &lt;serviceMetadata httpGetEnabled="true"/&gt;
        &lt;serviceDebug includeExceptionDetailInFaults="false"/&gt;
      &lt;/behavior&gt;
    &lt;/serviceBehaviors&gt;
  &lt;/behaviors&gt;
  
  &lt;bindings&gt;
    &lt;basicHttpBinding&gt;
      &lt;binding name="DefaultBindingConfig"&gt;
        &lt;!--&lt;security mode="none"&gt;
          &lt;transport clientCredentialType="none" /&gt;
        &lt;/security&gt;--&gt;
  
      &lt;/binding&gt;
    &lt;/basicHttpBinding&gt;
  &lt;/bindings&gt;
  
  &lt;services&gt;
    &lt;service name="Service.SecurityService"&gt;
      &lt;endpoint address="" 
                name="SecurityServiceEndpoint" 
                binding="basicHttpBinding" 
                bindingConfiguration="DefaultBindingConfig" 
                contract="Service.Contracts.ISecurityService" /&gt;
      &lt;endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" /&gt;
    &lt;/service&gt;
  &lt;/services&gt;
  &lt;serviceHostingEnvironment multipleSiteBindingsEnabled="true" /&gt;
  </code></pre>
  
  <p>    </p>
  
  <pre><code>[ServiceContract]
    public interface ISecurityService
    {
      [OperationContract]
      ApplicationSecurity GetFunctionsAllowedForUser(string userName, string applicationName);    
  }
  </code></pre>
  
  <p>How can I make it so that this service exposes the WSDL? I am pretty new to this.</p>