473,320 Members | 1,961 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Where to put schema when using custom collection?

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;
}
Nov 21 '05 #1
1 1367
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;
}

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Brendon | last post by:
I have 2 Xsd's The one contains basic type definitions <?xml version="1.0" encoding="utf-8"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"...
0
by: Lloyd Dupont | last post by:
1. I have define A custom web control with, let's say, a property called Content, when I use it like that: <lloyd:MyControl runat=server> <Content>some content</Content> </lloyd:MyControl> ...
0
by: Whoever | last post by:
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...
12
by: Whoever | last post by:
Hi, I'm trying to return an XmlDocument or XmlNode converted from a typed dataset. public XmlNode whatever() { MyTypedDataSet ds = new MyTypedDataSet(); return new XmlDataDocument(ds); }
1
by: RA | last post by:
Hi I have an xml schema and I have created a dataset from that schema. I have a web service that recieve info and sends back an xml information. I send back the xml using SchemaDataset.WriteXml...
9
by: Don | last post by:
Is there any way to detect when an item has been added to the Items collection of a combobox or listbox? I am inheriting a Combobox and want to validate items before they are added to the...
18
by: JohnR | last post by:
From reading the documentation, this should be a relatively easy thing. I have an arraylist of custom class instances which I want to search with an"indexof" where I'm passing an instance if the...
8
by: Phil Lee | last post by:
I'm sure this is possible but I just can't see how to do it. I want to add schemas to my solution and have C# classes automatically generated from them. I can see how to generate typed DataSet's...
0
by: akshaychand | last post by:
Hi, I am designing a Schema Editor using the Schema Object Model in .NET 2.0. I am currently facing an problem wherein I want to list all the built-in data types as well as the custom types that...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.