Files
mono/mcs/class/System.Web.Services/Test/standalone/server/IncludeTest.asmx
T
Lluis Sanchez 6d3babecdd * services.xml: More services.
* wstest.cs: Added null check.
	* client/localhost/IncludeTestTest.cs: New test.
	* server/localhost/IncludeTest.asmx, server/localhost/Test1.asmx,
	  server/localhost/Test2.asmx, server/localhost/TestBinding6.asmx.

svn path=/trunk/mcs/; revision=23615
2004-03-02 15:02:41 +00:00

35 lines
717 B
Plaintext

<%@ WebService Language="c#" Class="IncludeTest" %>
using System;
using System.Collections;
using System.Xml.Serialization;
using System.Web.Services;
using System.Web.Services.Protocols;
public class IncludeTest
{
[WebMethod]
[XmlInclude(typeof(ComplexThing))]
[SoapInclude(typeof(ComplexThing))]
public ArrayList foo()
{
ArrayList list = new ArrayList();
list.Add(new ComplexThing("abc", 1.1f));
list.Add(new ComplexThing("xyz", 2.0f));
return list;
}
}
public class ComplexThing
{
public ComplexThing() {}
public ComplexThing(string name, float val)
{
this.name = name;
this.val = val;
}
public string name;
public float val;
}