Categories:
.NET (357)
C (330)
C++ (183)
CSS (84)
DBA (2)
General (7)
HTML (4)
Java (574)
JavaScript (106)
JSP (66)
Oracle (114)
Perl (46)
Perl (1)
PHP (1)
PL/SQL (1)
RSS (51)
Software QA (13)
SQL Server (1)
Windows (1)
XHTML (173)
Other Resources:
What are different bindings supported by WCF
What are different bindings supported by WCF?
✍: Guest
WCF includes predefined bindings. They cover most of bindings widely needed in day to
day application. But just incase you find that you need to define something custom WCF
does not stop you. So let’s try to understand what each binding provides.
BasicHttpBinding: - This binding is used when we need to use SOAP over HTTP. This
binding can also be configured to be used as HTTPS. It can be also configured to send
data in plain text or in optimized form like MTOM.
WsHttpBinding: It is same like BasicHttpBinding. In short it uses SOAP over HTTP.
But with it also supports reliable message transfer, security and transaction. Reliable
message is supported by WS-ReliableMessaging, security with WS-Security, and
transactions with WS-AtomicTransaction.
NetTcpBinding:- This binding Sends binary-encoded SOAP, including support for reliable
message transfer, security, and transactions, directly over TCP. The biggest disadvantage
of NetTcpBinding is that both server and client should be also made in .NET language.
NetNamedPipesBinding:-Ths binding Sends binary-encoded SOAP over named pipes.
This binding is only usable for WCF-to-WCF communication between processes on the
same Windows-based machine.
Note: An interprocess control (IPC) protocol is used for exchanging information between
two applications, possibly running on different computers in a network. The difference
between Named pipes and TCP is that named pipes have good performance in terms of
communication with in processes. But when it comes to communicate across network TCP
holds the best choice. So if you are using WCF to communicate with process it’s the best
choice to use in terms for performance. Named pipes do not perform when the traffic is heavy
as compared to TCPIP.
NetMsmqBinding:- This binding sends binary-encoded SOAP over MSMQ. This binding
can only be used for WCF-to-WCF communication.
2007-11-04, 5026👍, 0💬
Popular Posts:
Where are cookies actually stored on the hard disk? This depends on the user's browser and OS. In th...
.NET INTERVIEW QUESTIONS - Where do you specify session state mode in ASP.NET ? The following code e...
What are some advantages and disadvantages of Java Sockets? Advantages of Java Sockets: Sockets are ...
What are the different elements in Functions points? The different elements in function points are a...
What will be printed as the resultof the operation below: int x; int modifyvalue() { return(x+=10); ...