Posted By

rengber on 02/01/12


Tagged

xml config WCF


Versions (?)

Minimalist WCF Client-side Config File


 / Published in: C#
 

Again, A-B-C. All the Behaviour garbage that "Add Service Reference" inserts for the TCP binding is unnecessary, especially if the Operation Contract is only for simple value types.

  1. <system.serviceModel>
  2. <client>
  3. <endpoint name="Name_Not_Significant"
  4. address="net.tcp://localhost:8001/"
  5. binding="netTcpBinding"
  6. contract="DoStuffServer.IDoStuff">
  7. </endpoint>
  8. </client>
  9. </system.serviceModel>

Report this snippet  

You need to login to post a comment.