Binding in WCF is little bit confusing for many people. Here I will try to elaborate for those who feel uncomfortable with Binding in WCF.
Binding in WCF tells the service about how it should behave like how much max data it can receive and how much it should wait before giving timeout exception etc.
The number of Binding supported in WCF are as follows.
<basicHttpBinding></basicHttpBinding>
<basicHttpContextBinding></basicHttpContextBinding>
<wsHttpBinding></wsHttpBinding>
<wsDualHttpBinding></wsDualHttpBinding>
<mexNamedPipeBinding></mexNamedPipeBinding>
<netMsmqBinding></netMsmqBinding>
<customBinding></customBinding>
and many more.
You can get all the binding quite easily. Go to you web.cofig of web project.
Add or go to Section
<system.serviceModel>
<bindings>
<----here you will find all the bindings supported by .net
I am giving an example of custom binding here
<system.serviceModel>
<bindings>
<customBinding>
<binding name="binaryHttp" closeTimeout="12:00:00" openTimeout="12:00:00"
receiveTimeout="12:00:00" sendTimeout="12:00:00">
<binaryMessageEncoding>
<readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647"
maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
</binaryMessageEncoding>
<httpTransport maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"
allowCookies="true" maxBufferSize="2147483647" />
</binding>
</customBinding>
</bindings>
</system.serviceModel>
feel free to ask you question or add if I missed something.
You can get a detail table reagrding binding at below link
http://eaverae.nl/wcftable.html
Cheers!
Vinod
1 comment:
If set Xaml property in code-behind its working fine.
Post a Comment
Send us your comment related to the topic mentioned on the blog