1 <%@ WebService Language="c#" Class="IncludeTest" %>
4 using System.Collections;
5 using System.Xml.Serialization;
6 using System.Web.Services;
7 using System.Web.Services.Protocols;
9 public class IncludeTest
12 [XmlInclude(typeof(ComplexThing))]
13 [SoapInclude(typeof(ComplexThing))]
14 public ArrayList foo()
16 ArrayList list = new ArrayList();
17 list.Add(new ComplexThing("abc", 1.1f));
18 list.Add(new ComplexThing("xyz", 2.0f));
23 public class ComplexThing
25 public ComplexThing() {}
27 public ComplexThing(string name, float val)