Hi,
I am not sure why you want to insert a schema. Could you explain?
Thanks
Dan Rogers
Microsoft Corporation
--------------------
From: "Whoever" <bz****@hotmail.com>
Subject: Where to put schema when using custom collection?
Date: Wed, 10 Nov 2004 21:43:26 -0500
Lines: 23
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.181
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.181
Message-ID: <#t**************@TK2MSFTNGP10.phx.gbl>
Newsgroups:
microsoft.public.dotnet.framework.webservices,micr osoft.public.dotnet.framew
ork.aspnet.webservices,microsoft.public.dotnet.fra mework.aspnet
NNTP-Posting-Host: mskresolve-1.mskcc.org 140.163.53.249
Path:
cpmsftngxa10.phx.gbl!TK2MSFTFEED01.phx.gbl!TK2MSFT NGP08.phx.gbl!TK2MSFTNGP10
phx.gbl
Xref: cpmsftngxa10.phx.gbl
microsoft.public.dotnet.framework.aspnet.webservic es:26444
microsoft.public.dotnet.framework.aspnet:275226
microsoft.public.dotnet.framework.webservices:7360
X-Tomcat-NG: microsoft.public.dotnet.framework.webservices
See below. The WSDL looks good, the result is OK but not Schema. Where and
how should I put it in. Hopfully not manually. Thanks.
public class aUser {
public string UserID { get {...} set {...}
public string UserName {...}
}
public class UserList : System.Collection.CollectionBase {
public void Add(aUser user) {...}
public aUser this[int Index] {...}
}
A web service:
[WebMethod]
[return: XmlElement("UserList", typeof(UserList))]
public UserList getUserList(string search) {
UserList ul = new UserList();
return ul;
}