**** Merged from MCS ****
[mono-project.git] / mcs / class / System.Web.Services / Test / standalone / server / IncludeTest.asmx
blobc64badce2adb46f93faf3011c530e10c1d87b900
1 <%@ WebService Language="c#" Class="IncludeTest" %>
3 using System;
4 using System.Collections;
5 using System.Xml.Serialization;
6 using System.Web.Services;
7 using System.Web.Services.Protocols;
9 public class IncludeTest
11         [WebMethod] 
12     [XmlInclude(typeof(ComplexThing))] 
13     [SoapInclude(typeof(ComplexThing))] 
14     public ArrayList foo() 
15     { 
16         ArrayList list = new ArrayList(); 
17         list.Add(new ComplexThing("abc", 1.1f)); 
18         list.Add(new ComplexThing("xyz", 2.0f)); 
19         return list; 
20     }
23 public class ComplexThing 
24
25         public ComplexThing() {} 
27         public ComplexThing(string name, float val) 
28         { 
29                 this.name = name; 
30                 this.val = val; 
31         } 
32         public string name; 
33         public float val;