Friday, August 20, 2010

WCF - Part 2

We have learned about the basics in Part1.

In this part just epalins other important things that we need to know about WCF

I have worked on Webservices for a long time and WCF for last 2 to 3 years. When we are working with different technology are different systems, this is the best one to communicate between each other.

WCF Bindings
-BasicHttpBinding
-WSHttpBinding
-WSDualHttpBinding
-WSFederationHttpBinding
-NetTcpBinding
-NetNamedPipeBinding
-NetMsmqBinding

Find the comparison chart here about the Different bindings

Selvakumar's WCF tutorial site is a good resource for beginners and who looking for any help regarding WCF :)

IsInitiating, IsTerminating attributes(OperationContract) provide us the functionality to call methods in a specified order.

SessionMode & InstanceContextMode(PerCall, PerSession, Single) are used for Session and Instance Management.

We can use the "Rename" command on the "Refactor" menu to change the class name in code, svc and config file together. (Finally Problem Solved by MS :) )

Exceptions are handled thro Fault Contract
[ServiceContract]
public interface IMyService
{
[OperationContract]
[FaultContract(typeof(MyApplicationFault))]
void MyMethod();
}

Some Cool links to learn more about WCF
http://msdn.microsoft.com/en-us/netframework/first-steps-with-wcf.aspx http://msdn.microsoft.com/en-us/library/ee354381.aspx http://msdn.microsoft.com/en-us/library/ee958158.aspx

No comments:

Post a Comment