Hi,
Please go through the following links which will be helpful to you,
http://msdn.microsoft.com/en-us/library/hh699775.aspx
http://msdn.microsoft.com/en-us/library/hh367310.aspx
http://technet.microsoft.com/en-us/library/hh699665.aspx
Thanks & Regards, MS CRM Consultant, V.Surya. My Blog: http://inventcrm.wordpress.com/