Click here to Skip to main content
15,170,741 members
Home / Discussions / C#
   

C#

 
AnswerRe: Redirect output from a unmanaged dll to a winform textbox Pin
Richard MacCutchan4-May-12 0:39
mveRichard MacCutchan4-May-12 0:39 
AnswerRe: Redirect output from a unmanaged dll to a winform textbox Pin
BobJanova4-May-12 0:45
MemberBobJanova4-May-12 0:45 
GeneralRe: Redirect output from a unmanaged dll to a winform textbox Pin
andreas047-May-12 10:52
Memberandreas047-May-12 10:52 
QuestionHow do According to xml export excel? Pin
Apocalypse Now3-May-12 22:51
MemberApocalypse Now3-May-12 22:51 
AnswerRe: How do According to xml export excel? Pin
Richard MacCutchan4-May-12 0:37
mveRichard MacCutchan4-May-12 0:37 
GeneralRe: How do According to xml export excel? Pin
Apocalypse Now4-May-12 0:48
MemberApocalypse Now4-May-12 0:48 
QuestionMVC Config File / MAPPING Pin
dataminers3-May-12 12:25
Memberdataminers3-May-12 12:25 
GeneralUnderstanding various types of WCF bindings Pin
Vasudev Choudhary3-May-12 21:03
MemberVasudev Choudhary3-May-12 21:03 
WCF- Service

CF binding is a set of binding elements and each element specify, how the service and client will communicates with each other's. Each binding must have at least one transport element and one message encoding element.
Different types of WCF bindings

WCF has a couple of built in bindings which are designed to fulfill some specific need. You can also define your own custom binding in WCF to fulfill your need. All built in bindings are defined in the System.ServiceModel Namespace. Here is the list of 10 built in bindings in WCF which we commonly used:

Basic binding

This binding is provided by the BasicHttpBinding class. It is designed to expose a WCF service as an ASMX web service, so that old clients (which are still using ASMX web service) can consume new service. By default, it uses Http protocol for transport and encodes the message in UTF - 8 text for-mat. You can also use Https with this binding.

Web binding

This binding is provided by the WebHttpBinding class. It is designed to expose WCF services as Http requests by using HTTP-GET, HTTP-POST. It is used with REST based services which may give output as an XML or JSON format. This is very much used with social networks for implementing a syndication feed.

Web Service (WS) binding

This binding is provided by the WSHttpBinding class. It is like as Basic binding and uses Http or Https protocols for transport. But this is designed to offer various WS - * specifications such as WS – Reliable Messaging, WS - Transactions, WS - Security and so on which are not supported by Basic binding.

wsHttpBinding= basicHttpBinding + WS-* specification

WS Dual binding

This binding is provided by the WsDualHttpBinding class. It is like as wsHttpBinding except it sup-ports bi-directional communication means both clients and services can send and receive messages.

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.

MSMQ binding

This binding is provided by the NetMsmqBinding class. It uses MSMQ for transport and offers sup-port to disconnected message queued. It provides solutions for disconnected scenarios in which service processes the message at a different time than the client send the messages.

Federated WS binding

This binding is provided by the WSFederationHttpBinding class. It is a specialized form of WS binding and provides support to federated security.
Peer Network binding

This binding is provided by the NetPeerTcpBinding class. It uses TCP protocol but uses peer net-working as transport. In this networking each machine (node) acts as a client and a server to the other nodes. This is used in the file sharing systems like torrent.

MSMQ Integration binding

This binding is provided by the MsmqIntegrationBinding class. This binding offers support to communicate with existing systems that communicate via MSMQ.

C#
<pre lang="c#"><pre lang="c#">
Choosing an Appropriate WCF binding


. Depending upon your requirements, you can choose a binding for your service as shown below in the diagram:
Vasudev Choudhary


modified 10-Mar-14 14:56pm.

AnswerRe: MVC Config File / MAPPING Pin
Richard MacCutchan4-May-12 0:36
mveRichard MacCutchan4-May-12 0:36 
Questioncritical rigion Pin
ammar24423-May-12 7:04
Memberammar24423-May-12 7:04 
AnswerRe: critical rigion Pin
Wes Aday3-May-12 7:13
professionalWes Aday3-May-12 7:13 
AnswerRe: critical rigion Pin
Bernhard Hiller3-May-12 22:23
MemberBernhard Hiller3-May-12 22:23 
AnswerRe: critical rigion Pin
Abhinav S3-May-12 23:00
MemberAbhinav S3-May-12 23:00 
QuestionStreaming the response of type byte[] Pin
NarVish2-May-12 23:51
MemberNarVish2-May-12 23:51 
QuestionRe: Streaming the response of type byte[] Pin
Richard MacCutchan2-May-12 23:53
mveRichard MacCutchan2-May-12 23:53 
AnswerRe: Streaming the response of type byte[] Pin
NarVish3-May-12 0:31
MemberNarVish3-May-12 0:31 
GeneralRe: Streaming the response of type byte[] Pin
Richard MacCutchan3-May-12 1:10
mveRichard MacCutchan3-May-12 1:10 
GeneralRe: Streaming the response of type byte[] Pin
NarVish3-May-12 1:42
MemberNarVish3-May-12 1:42 
GeneralRe: Streaming the response of type byte[] Pin
Richard MacCutchan3-May-12 1:54
mveRichard MacCutchan3-May-12 1:54 
GeneralRe: Streaming the response of type byte[] Pin
NarVish3-May-12 3:03
MemberNarVish3-May-12 3:03 
QuestionEnter-PSSession : Connecting to remote server failed Pin
Sebastian T Xavier2-May-12 21:30
MemberSebastian T Xavier2-May-12 21:30 
AnswerRe: Enter-PSSession : Connecting to remote server failed Pin
Richard MacCutchan2-May-12 23:52
mveRichard MacCutchan2-May-12 23:52 
QuestionHow to get video stream from usb cam buffer Pin
bunyamin_2-May-12 5:45
Memberbunyamin_2-May-12 5:45 
Questioncan't found provider sqlserver Pin
MemberDotNetting2-May-12 2:39
MemberMemberDotNetting2-May-12 2:39 
AnswerRe: can't found provider sqlserver Pin
Wes Aday2-May-12 2:45
professionalWes Aday2-May-12 2:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.