Skip to content

Instantly share code, notes, and snippets.

@JohannesEH
Created October 27, 2011 21:43
Show Gist options
  • Save JohannesEH/1320969 to your computer and use it in GitHub Desktop.
Save JohannesEH/1320969 to your computer and use it in GitHub Desktop.
Host name problems in WCF service metadata
<system.serviceModel>
<services>
<service name="Example.ProblemService" behaviorConfiguration="CustomBehavior">
<endpoint contract="Example.IProblemService" binding="wsHttpBinding" bindingConfiguration="ssl" />
<endpoint contract="IMetadataExchange" binding="mexHttpBinding" address="mex"/>
</service>
</services>
<bindings>
<wshttpbinding>
<binding name="ssl">
<security mode="Transport">
<transport clientCredentialType="None"/>
</security>
</binding>
</wsHttpBinding>
</bindings>
<behaviors>
<servicebehaviors>
<behavior name="CustomBehavior">
<servicemetadata httpGetEnabled="true" />
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment