Advertisement
Guest User

Untitled

a guest
Dec 27th, 2012
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 0.98 KB | None | 0 0
  1. With base address
  2.  
  3. <service name="WCFService.Service" behaviorConfiguration="behaviorConfig">
  4. <host>
  5.   <baseAddresses>
  6.     <add baseAddress="net.tcp://localhost:1645/ChatServer/"/>
  7.   </baseAddresses>
  8.   </host>
  9.  <endpoint address="tcp"
  10.                  binding="netTcpBinding"
  11.                  bindingConfiguration="tcpBinding"
  12.                  contract="ChatService.IChat"/>
  13.  
  14.  <endpoint address="mex"
  15.                  binding="mexTcpBinding"
  16.                  contract="IMetadataExchange"/>
  17.  
  18.  </service>
  19.  
  20. Without base address
  21.  
  22. <service name="WCFService.Service" behaviorConfiguration="behaviorConfig">
  23.  <endpoint address="net.tcp://localhost:1645/ChatServer/tcp"
  24.                  binding="netTcpBinding"
  25.                  bindingConfiguration="tcpBinding"
  26.                  contract="ChatService.IChat"/>
  27.  
  28.  <endpoint address="net.tcp://localhost:1645/ChatServer/mex"
  29.                  binding="mexTcpBinding"
  30.                  contract="IMetadataExchange"/>
  31.  
  32.  </service>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement