473,802 Members | 2,015 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.Collecti on.CollectionBa se {
public void Add(aUser user) {...}
public aUser this[int Index] {...}
}

A web service:

[WebMethod]
[return: XmlElement("Use rList", typeof(UserList ))]
public UserList getUserList(str ing search) {
UserList ul = new UserList();
return ul;
}
Nov 21 '05 #1
1 1381
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.publi c.dotnet.framew ork.webservices ,microsoft.publ ic.dotnet.frame w
ork.aspnet.webs ervices,microso ft.public.dotne t.framework.asp net
NNTP-Posting-Host: mskresolve-1.mskcc.org 140.163.53.249
Path:
cpmsftngxa10.ph x.gbl!TK2MSFTFE ED01.phx.gbl!TK 2MSFTNGP08.phx. gbl!TK2MSFTNGP1 0
phx.gbl
Xref: cpmsftngxa10.ph x.gbl
microsoft.publi c.dotnet.framew ork.aspnet.webs ervices:26444
microsoft.publi c.dotnet.framew ork.aspnet:2752 26
microsoft.publi c.dotnet.framew ork.webservices :7360
X-Tomcat-NG: microsoft.publi c.dotnet.framew ork.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.Collecti on.CollectionBa se {
public void Add(aUser user) {...}
public aUser this[int Index] {...}
}

A web service:

[WebMethod]
[return: XmlElement("Use rList", typeof(UserList ))]
public UserList getUserList(str ing 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
5986
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" attributeFormDefault="unqualified"> <xs:simpleType name="TrueFalse"> <xs:restriction base="xs:NMTOKEN"> <xs:enumeration value="true"/>
0
1261
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> VS.NET says 'the active schema doesn't support Content' and underline my tag with a red winding line
0
897
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 {...} public string UserName {...} } public class UserList : System.Collection.CollectionBase { public void Add(aUser user) {...}
12
5317
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
1831
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 (...) A consumer of the web service then call a different method of the web service which takes an xml string as an input parameter. I need to load this xml string into the Schemadataset. I do that using the following:
9
7323
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 combobox, but I can't find anything that will let me do that. - Don
18
4752
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 class where only the "searched" property has a value. I expected to get the index into the arraylist where I could then get the entire class instance. However, the 'indexof' is never calling my overloaded, overrides Equals method. Here is the...
8
6461
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 with the MSDataSetGenerator custom tool. Is there something similar for simple schemas? Regards Phil Lee
0
848
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 are defined globally in the schema as well as the custom types that are defined globally in all the imported schemas. Basically, I want to list all these types in a drop down so that when user creates a new element or attribute, he can specify that...
0
9699
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9562
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10538
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10285
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9115
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7598
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5494
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5622
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4270
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.