title: The test form is only available for methods with primitive types as parameters
body: <p>I want to debug my webmethod to see if the returning list contains the object that had been passed as a parameter.</p>
  
  <p><strong>My webmethod is as follows:</strong></p>
  
  <pre><code>[WebMethod]
         public List&lt;Vehicle&gt; GetCustomerList(Vehicle obj)
              {
                  //List&lt;Vehicle&gt; newL = new List&lt;Vehicle&gt; { obj };
  
                  return new List&lt;Vehicle&gt; { obj };
  
              }
  </code></pre>
  
  <p>It says "The test form is only available for methods with primitive types as parameters". SO i want to know what changes i need to make in order to be able to check what is being passed by the method.</p>
  
  <p><strong>> EDITED CODE FOR A FOLLOW UP QUESTION</strong></p>
  
  <pre><code>public class Service1 : System.Web.Services.WebService
      {
  
     [WebMethod]
               public List&lt;Vehicle&gt; GetCustomerList(Vehicle vehi)
              {
                  List&lt;Vehicle&gt; newL = new List&lt;Vehicle&gt; { vehi };
                  return new List&lt;Vehicle&gt; { vehi };
  
              }
  
              [WebMethod]
              public void simpleCase()
              {
                  Vehicle obj = new Vehicle();
                  obj.VehicleID = "KL-9876";
                  obj.VehicleType = "Nissan";
                  obj.VehicleOwner = "Sanjiva";
                  GetCustomerList(obj);
              }
      }
  
  
  
      public class Vehicle
      {
          public string VehicleID { get; set; }
          public string VehicleType { get; set; }
          public string VehicleOwner { get; set; }
      }
  
  
  }
  </code></pre>