Category Archives: WCF

What is WCF Reliable Messaging?

WCF Reliable Messaging makes web services more reliable. It addresses the following problems: A call to a web service does not make because the networks are not perfectly reliable as they suffer congestion and may drop signals. OR the service response does not make it back to the client. If I make multiple calls to Continue Reading…

What are Contracts in WCF?

A Contract is basically an agreement between the two parties i.e. Service and Client. There are two types of Contracts in WCF. Behavioral Contracts Service Contract:- Service contract describes the operation that service provide. A Service can have more than one service contract but it should have at least one Service contract. A Service Contract can be define Continue Reading…

What are different types of hosting options available for WCF Services?

WCF provides two types of hosting: Hosting in a Managed Application (Self Hosting) Windows Application Windows Service Console Application Hosting on Web Server IIS 6.0 supports only HTTP Windows Process Activation Service (WAS) i.e. IIS 7.0 supports HTTP, TCP, MSMQ, NamedPipes.

What is difference between BasicHttpBinding and WsHttpBinding.

BasicHttpBinding It is based on SOAP 1.1 specification. No support for reliable Messaging. No support for transactions. It is a bit faster because security is disabled by default. WsHttpBinding It is based on SOAP 1.2 specification. It supports reliable messaging. It supports atomic and distributed transactions. As it supports advanced security options and its enabled by default, so Continue Reading…

What is a WCF Binding? How many different types of bindings available in WCF?

Bindings in WCF actually defines that how to communicate with the service. Binding specifies that what communication protocol as well as encoding method will be used. Optionally, binding can specify other important factors like transactions, reliable sessions and security. Different types of bindings available BasicHttpBinding :  It is suitable for communicating with ASP.NET Web services Continue Reading…

What are the Endpoints in WCF? or Explain ABCs of endpoint?

The Relationship between Address, Binding and Contract is called endpoints. A service endpoint has three basic elements or also called ABCs of an endpoint i.e. Address, Binding and Contract. Address: Address is the URL that identifies the location of the service. Binding:  Binding defines how the service can be accessed. Contract:  Contract identifies what is exposed Continue Reading…

What is the difference between WCF and Web services?

Web service ASMX web service uses SOAP over HTTP only for sending and receiving messages. ASMX web service can be hosted in IIS only. ASMX web service uses XmlSerializer. ASMX web service provide limited security. WCF service WCF service uses SOAP over any transport protocol (HTTP, TCP/IP, MSMQ, Named Pipes etc) for sending and receiving messages. WCF service Continue Reading…