title: how to call C# web service with Serialization object from client
body: <p>I get method from reference after add wsdl in my C# code.</p>
  
  <pre><code>[System.Web.Services.Protocols.SoapDocumentMethodAttribute("Service1", RequestNamespace="http://xxx.yyy/", ResponseNamespace="http://xxx.yyy/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
          [return: System.Xml.Serialization.XmlElementAttribute("Service1Return")]
          public Servic1Output[] Service1([System.Xml.Serialization.XmlElementAttribute("Servicelist")] Service1Input[] Service1List) {
              object[] results = this.Invoke("Service1", new object[] {
                          Service1List});
              return ((Service1Output[])(results[0]));
              }
  </code></pre>
  
  <p>i try to call this by </p>
  
  <pre><code>webreference.Service1Input input = new Service1Input();
  webreference.Service1Output output = new Service1Output();
  
  input.ACTION = "First Text";
  input.ACTION2 = "Second Text";
  
  List&lt;webreference.Service1Input&gt; input2;
  input2.Add(input);
  
  List&lt;webreference.Service1Output&gt; output2;
  
  webreference.test service = new test();
  output = service.Service1(input);
  </code></pre>
  
  <p>but it result is invalid argrument. at </p>
  
  <pre><code>output = service.Service1(input);
  </code></pre>
  
  <p>How can i call method like this.</p>