Steps to Deploy the WCF service to IIS on Windows XP

On the Windows Start menu, click Run. In the Run dialog box, type inetmgr, and then click OK. The Internet Information Services console starts. In the Internet Information Services console, expand the node corresponding to your computer in the tree-view, and then expand Web sites. Right-click Default Web Site, point to New,… Continue reading

Steps to Deploy the WCF service to IIS on Windows Vista

In the Windows Control Panel, click System and Maintenance, click Administrative Tools, and then double-click Internet Information Services (IIS) Manager. The Internet Information Services (IIS) Manager starts. In the Internet Information Services (IIS) Manager, expand the node corresponding to your computer in the tree-view, and then expand Web sites. Right-click Default Web Site,… Continue reading

WCF bindings comparison

Binding Protocol/Transport Message Encoding Security Default Session Transaction Duplex BasicHttpBinding Http, Https Text None No – – WSHttpBinding Http, Https Text Message Optional Yes – WSDualHttpBinding Http, Https Text Message Yes Yes Yes NetTcpBinding TCP Binary Transport Optional Yes Yes NetNamedPipeBinding Named Pipe Binary Transport Yes Yes Yes NetMsmqBinding MSMQ… Continue reading

Difference between Basic HTTP Binding and Net TCP Binding in WCF Service

Juval Lowy’s book said – “A binding is merely a consistent, canned set of choices regarding the transport protocol, message encoding, communication pattern, reliability, security, transaction propagation, and interoperability.” Basic HttpBinding – HttpBinding is based on  HTTP protocol. It is compatiable with Web Service Technology and SOAP standard, which are heavier… Continue reading

Difference between BasicHttpBinding vs. WSHttpBinding in WCF Service

The BasicHttpBinding and the WSHttpBinding are designed for interoperability and they are the two most commonly used bindings. Both binding types work best in a load-balanced environment. For performance, the BasicHttpBinding has considerably less overhead than the WSHttpBinding. If you do not need the features that are specific toWSHttpBinding, use… Continue reading

[MessageProperty] Attribute in WCF

This attribute specifies those members who will not be serialized into the SOAP message, but contains data that is included with a custom message: [MessageContract] public class BookOrder { [MessageHeader] public string ISBN [MessageProperty] public string FirstName { get { return firstname; } set { firstname = value; } }… Continue reading

[MessageBodyMember] Attribute in WCF

The [MessageBodyMember] attribute identifies the members who are to be serialized as a SOAP body element: [MessageContract] public class BookOrder { [MessageHeader] public string ISBN [MessageBodyMember] public int Quantity This code snippet defines a message contract, as well a message header and a message body member. The value of ISBN… Continue reading

[MessageHeader] Attribute in WCF

The [MessageHeader] attribute maps a SOAP message header to fields and properties of a type marked with the [MessageHeader] attribute. The fields or properties can be a simple or composite type that can be serialized: [MessageContract] public class BuyBook { [MessageHeader] Public string Title; } The following sections list the… Continue reading

[MessageContract] Attribute in WCF

Message contracts are defined by applying the [MessageContract] attribute. You then specify specifics for each message using the [MessageBodyMember] and [MessageHeader] attributes. The following example illustrates these three attributes by defining a simple message contract: [MessageContract] public class BuyStock { [MessageHeader] Public string Title; [MessageBodyMember] Public decimal Cost; } The… Continue reading

Message Contracts in WCF

Message contracts provide the ultimate control over the formatting of the SOAP messages. In most cases you will not need to employ this level because data contracts provide most of the control you will need. However, should the need arise for this level of customization, message contracts are available. Probably… Continue reading