Showing posts from December, 2014

Create WCF service and use it to retreive data from Dynamics CRM

1. Open Visual Studio and Select WCF service application.

2. Open IService1.cs and add following code::

namespace WcfServiceCRM
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IService1" in both code and config file together.
    public interface IService1

        Account[] getAccountDetails();

        // TODO: Add your service operations here

    // Use a data contract as illustrated in the sample below to add composite types to service operations.
    public class Account
        string fullname;
        string companyname;
        string telephone;

        public string FullName
            get { return fullname; }
            set { fullname = value; }

        public string CompanyName
            get { return companyname; }
            set { …
go to top image