Skip to content

Instantly share code, notes, and snippets.

@JoanComasFdz
Created December 28, 2011 09:05
Show Gist options
  • Save JoanComasFdz/1527198 to your computer and use it in GitHub Desktop.
Save JoanComasFdz/1527198 to your computer and use it in GitHub Desktop.
Basic binding for a WCF service client using username and password.
<client>
<endpoint address="YOUR_SERVICE_URL"
binding="netTcpBinding"
bindingConfiguration="NetTcpBinding_YOUR_REFERENCED_SERVICE_INTERFACE"
contract="YOUR_REFERENCED_SERVICE.YOUR_REFERENCED_SERVICE_INTERFACE"
name="NetTcpBinding_YOUR_REFERENCED_SERVICE_INTERFACE">
<identity>
<dns value="dev_cert_2"/>
<certificate encodedValue="..." />
</identity>
</endpoint>
</client>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment