title: How to use class function from asmx Service (BL) from Client C# Winforms
body: <p>I have different projects in the solution for the Bl service and the Winform Client.</p>
  
  <p>in the Bl project iv'e added a User Class with a function .
  i managed to find the class from the client but i do not get the function. and the Constructor with the parameters.</p>
  
  <p><a href="https://i.stack.imgur.com/vEfhU.png" rel="nofollow noreferrer">this is the BL</a></p>
  
  <p><img src="https://i.stack.imgur.com/vEfhU.png" alt=""></p>
  
  <p>the service is added as a web reference in the client project
   and this is what I get:</p>
  
  <p><a href="https://i.stack.imgur.com/kbEty.png" rel="nofollow noreferrer">i can see the class properties but not the functions.</a></p>
  
  <p><img src="https://i.stack.imgur.com/kbEty.png" alt=""></p>
  
  <p>and this is the class:</p>
  
  <pre><code>public class User
  {
      public string FirstName;
      public string LastName;
      public string Email;
      public string PhoneNumber;
      public string PassWord;
      public string UserName;
      public User(string fn, string ln, string un, string pn, string em, string pw)
      {
          FirstName = fn;
          LastName = fn;
          Email = em;
          PhoneNumber = pn;
          PassWord = pw;
          UserName = un;
      }
      public User()
      {
          //
      }
      public void setData(string fn, string ln, string un, string pn, string em, string pw)
      {
          FirstName = fn;
          LastName = fn;
          Email = em;
          PhoneNumber = pn;
          PassWord = pw;
          UserName = un;
      }
  
  }
  </code></pre>
  
  <p>and this is what I am trying to do eventually :</p>
  
  <pre><code>[WebMethod]
      public DataSet RegisterNewUser(User usr)
      {
          return getDal.RegisterNewUser(usr.UserName, usr.FirstName, usr.LastName, usr.PassWord, usr.Email, usr.PhoneNumber);
      }
  </code></pre>
  
  <p>to send a user class to the RegisterNewUser</p>
  
  <p>I didn't find any answer here for that problem</p>