title: How to call web Services store into list In C#
body: <p>I have to bind drop down list using services and for that i am calling services from .cs and using AJAX call i will coll this method and bind drop down list.
  But i unable to add this into services. Getting error <code>Can not implicitly convert 'Seystem.Collections.Generic.List&lt;string&gt;' to 'Seystem.Collections.Generic.List&lt;MyprojectName.Header.CountryList&gt;</code>
  what i need to do.</p>
  <pre><code>public Almarai.GiveAway.GetInitiatorList.INITIATORS_LIST GetInitiatorsListByWorkflow(string userId, string WorkflowTypeCode) {
              return base.Channel.GetInitiatorsListByWorkflow(userId, WorkflowTypeCode);
          }
  
  [System.Diagnostics.DebuggerStepThroughAttribute()]
  
  [System.CodeDom.Compiler.GeneratedCodeAttribute(&quot;System.Runtime.Serialization&quot;, &quot;4.0.0.0&quot;)]
  [System.Runtime.Serialization.DataContractAttribute(Name=&quot;ALM_COUNTRY_M&quot;, Namespace=&quot;http://schemas.datacontract.org/2004/07/Almarai.Web.Services.DataEntities&quot;)]
  [System.SerializableAttribute()]
  
  public partial class ALM_COUNTRY_M : object, System.Runtime.Serialization.IExtensibleDataObject, 
      System.ComponentModel.INotifyPropertyChanged {
      
      [System.NonSerializedAttribute()]
      private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
      [System.Runtime.Serialization.OptionalFieldAttribute()]
      private bool COUNTRY_ACTIVEField;
      
      [System.Runtime.Serialization.OptionalFieldAttribute()]
      private int COUNTRY_M_IDField;
      
      [System.Runtime.Serialization.OptionalFieldAttribute()]
      private string CountryCodeField;
      
      [System.Runtime.Serialization.OptionalFieldAttribute()]
      private string CountryNameField;
  [System.Runtime.Serialization.DataMemberAttribute()]
  public string CountryCode {
      get {
          return this.CountryCodeField;
      }
      set {
          if ((object.ReferenceEquals(this.CountryCodeField, value) != true)) {
              this.CountryCodeField = value;
              this.RaisePropertyChanged(&quot;CountryCode&quot;);
          }
      }
  }
  
  [System.Runtime.Serialization.DataMemberAttribute()]
  public string CountryName {
      get {
          return this.CountryNameField;
      }
      set {
          if ((object.ReferenceEquals(this.CountryNameField, value) != true)) {
              this.CountryNameField = value;
              this.RaisePropertyChanged(&quot;CountryName&quot;);
          }
      }
  }
  
  [System.Runtime.Serialization.DataMemberAttribute()]
  public string DivisionCode {
      get {
          return this.DivisionCodeField;
      }
      set {
          if ((object.ReferenceEquals(this.DivisionCodeField, value) != true)) {
              this.DivisionCodeField = value;
              this.RaisePropertyChanged(&quot;DivisionCode&quot;);
          }
      }
  }
  
  [System.Runtime.Serialization.DataMemberAttribute()]
  public int DivisionId {
      get {
          return this.DivisionIdField;
      }
      set {
          if ((this.DivisionIdField.Equals(value) != true)) {
              this.DivisionIdField = value;
              this.RaisePropertyChanged(&quot;DivisionId&quot;);
          }
      }
  }
  
  [System.Runtime.Serialization.DataMemberAttribute()]
  public string DivisionName {
      get {
          return this.DivisionNameField;
      }
      set {
          if ((object.ReferenceEquals(this.DivisionNameField, value) != true)) {
              this.DivisionNameField = value;
              this.RaisePropertyChanged(&quot;DivisionName&quot;);
          }
      }
  }
  </code></pre>
  <p>Method:</p>
  <pre><code>public static List&lt;CountryList&gt; GetCountriesName(string UserID)
  {
      GetInitiatorList.MasterDataServiceClient oClient = new GetInitiatorList.MasterDataServiceClient();
      string userid = &quot;approver01&quot;;
      string work = &quot;4&quot;;
      oClient.GetInitiatorsListByWorkflow(userid, work).ToString();
  
      List&lt;CountryList&gt; lst = new List&lt;CountryList&gt;();
      lst.Add(oClient.GetInitiatorsListByWorkflow(userid, work));
      return lst;
  }
  </code></pre>
  <p>Now i have change string to object type but still Error i am getting</p>
  <pre><code>   public class CountryList
      {
          public INITIATORS_LIST ExtensionData { get; internal set; }
      }
  </code></pre>
  <p>I have added Initiator class i am looking these filed to bind with drop down list any one have help me to do same</p>
  <p>Please see Screen shots</p>
  <p><a href="https://i.stack.imgur.com/71rdW.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/71rdW.png" alt="enter image description here" /></a></p>