Getting Started with Adobe After Effects - Part 6: Motion Blur


Upload Image Close it
Select File

Browse by Tags · View All
#DOTNET 33
#.NET 26
#ASP.NET 25
ASP.NET 24
brh 22
#C# 14
.NET 13
WCF 11
c# 9
#MultiThreading 7

Archive · View All
January 2011 10
September 2011 6
May 2011 6
December 2011 5
October 2011 5
June 2011 5
February 2011 3
November 2012 2
August 2012 2
April 2012 2

Difference between TcpBinding and HttpDualBinding for Callback in WCF

Nov 23 2011 10:38AM by Neeraj Kaushik   

The Http bindings serialized messages into XML and send them via HTTP. HTTP is request response protocol, which is one way communication at a time. Caller sends requests to the server and server responds and sends response messages. Once the response is received connection gets closed whereas TCP is bidirectional protocol which enable socket to send and receive messages simultaneously. TcpBinding Offered by the NetTcpBinding class, TCP binding uses TCP for cross-machine communication on the intranet. It supports a variety of features, including reliability, transactions, and security, and is optimized for WCF-to-WCF communication. As a result, it requires both the client and the service to use WCF.

TcpBinding serialized data onto the wire in a binary-encoded-XML format which is considerably more efficient than XML and transports data via TCP which can, in some circumstances be more efficient than HTTP.

The downside of TCP is that you have to open holes in firewalls to allow TCP traffic through. The benefit of HTTP is that it uses TCP Port 80 which is generally left open in most firewalls.

If you want bi-directional full-duplex communications between caller and service, you can either

1) use a single TCP socket, but run the risk of a firewall in between blocking communications, or 2) use two HTTP connections - one from the client to the service, the other from the service to the client. This will be a little slower than a duplex TcpBinding, but far more likely to pass through most firewalls.

TcpBindings are not Interoperable, client and server machine should have .Net framework installed whereas HttpBindings (BasicHttpBinding,HttpDualBinding,WsHttpBinding) are interoperable because data transmits in XML format.

Tags: #.NET, #DOTNET, #ASP.NET, ASP.NET, .NET, WCF,


Neeraj Kaushik
54 · 4% · 1132
1
 
0
Lifesaver
 
0
Refreshed
 
0
Learned
 
0
Incorrect



Submit

Your Comment


Sign Up or Login to post a comment.

"Difference between TcpBinding and HttpDualBinding for Callback in WCF" rated 5 out of 5 by 1 readers
Difference between TcpBinding and HttpDualBinding for Callback in WCF , 5.0 out of 5 based on 1 ratings
    Copyright © Rivera Informatic Private Ltd Contact us      Privacy Policy      Terms of use      Report Abuse      Advertising      [ZULU1097]