WCF, both server and client is available in same location. Which binding to use.

Posted by Kkaur05 under WCF on 11/7/2013 | Points: 10 | Views : 4175 | Status : [Member] | Replies : 3
WCF, both server and client is available in same location. Which binding to use.




Responses

Posted by: Allemahesh on: 11/7/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
Dear Kkaur,

1. NetNamedPipesBinding you would be use if your service will hosted on the same computer as the client.
2. NetNamedPipesBinding binding is used if you are using WCF-to-WCF communication between processes on the same machine.
3. NetNamedPipesBinding uses named pipe as transport for same machine communication using an efficient binary encoding method.

You can see the below links:-
http://msdn.microsoft.com/en-us/library/system.servicemodel.netnamedpipebinding(v=vs.110).aspx
http://msdn.microsoft.com/en-us/library/ms752247.aspx


Happy Coding,
If it helps you or directs U towards the solution, MARK IT AS ANSWER

Kkaur05, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bandi on: 11/7/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
TCP binding
This binding is provided by the NetTcpBinding class. It uses TCP protocol for communication be-tween two machines with in intranet (means same network). It encodes the message in binary format. This is faster and more reliable binding as compared to the Http protocol bindings. It is only used when communication is WCF - to – WCF means both client and service should have WCF.

IPC binding
This binding is provided by the NetNamedPipeBinding class. It uses named pipe for Communication between two services on the same machine . This is the most secure and fastest binding among all the bindings.

Reference:
http://www.dotnet-tricks.com/Tutorial/wcf/VE8a200713-Understanding-various-types-of-WCF-bindings.html

WCF by example on netNamedPipeBinding
http://dotnetmentors.com/wcf-by-example-on-netnamedpipebinding.aspx

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Kkaur05, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bandi on: 11/7/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
When to use which Binding
http://dotnetmentors.com/wcf/when-to-use-which-binding-in-wcf.aspx

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Kkaur05, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response