473,738 Members | 5,084 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Support for xsd:list?

TN
I have a list like this defined in my wsdl:

<xsd:simpleTy pe name="MyPets">
<xsd:restrictio n base="xsd:strin g">
<xsd:enumeratio n value="dog"/>
<xsd:enumeratio n value="cat"/>
<xsd:enumeratio n value="fish"/>
</xsd:restriction >
</xsd:simpleType>

<xsd:simpleTy pe name="PetsList" >
<xsd:list itemType="abc:M yPets"/>
</xsd:simpleType>

When I import the wsdl into my .NET project, PetsList is serialized as a
String. Is that the intended behaviour? Or is it simply because xds:list is
not supported?

Thank you,
Nov 12 '05 #1
3 3047
PetsList will be serizlized as a string because the value space of a list
type is a string which contains a list of values corresponding to its
itemType, separated by whitespaces.

So a valid instance of PetsList is "dog cat fish" which is a String of
concatenated values.

"TN" <TN@discussions .microsoft.com> wrote in message
news:A8******** *************** ***********@mic rosoft.com...
I have a list like this defined in my wsdl:

<xsd:simpleTy pe name="MyPets">
<xsd:restrictio n base="xsd:strin g">
<xsd:enumeratio n value="dog"/>
<xsd:enumeratio n value="cat"/>
<xsd:enumeratio n value="fish"/>
</xsd:restriction >
</xsd:simpleType>

<xsd:simpleTy pe name="PetsList" >
<xsd:list itemType="abc:M yPets"/>
</xsd:simpleType>

When I import the wsdl into my .NET project, PetsList is serialized as a
String. Is that the intended behaviour? Or is it simply because xds:list is not supported?

Thank you,

Nov 12 '05 #2
TN
Thanks for the response.

Interesting, though. Then I guess, .Net just ignore the constraint (dog,
fish, cat) and allows the application to create a list with arbitrary entries
say "dog chicken cat", even though chicken is clearly an invalid entry
according to the schema.

Thanks,

Tu

"Zafar Abbas [MSFT]" wrote:
PetsList will be serizlized as a string because the value space of a list
type is a string which contains a list of values corresponding to its
itemType, separated by whitespaces.

So a valid instance of PetsList is "dog cat fish" which is a String of
concatenated values.

"TN" <TN@discussions .microsoft.com> wrote in message
news:A8******** *************** ***********@mic rosoft.com...
I have a list like this defined in my wsdl:

<xsd:simpleTy pe name="MyPets">
<xsd:restrictio n base="xsd:strin g">
<xsd:enumeratio n value="dog"/>
<xsd:enumeratio n value="cat"/>
<xsd:enumeratio n value="fish"/>
</xsd:restriction >
</xsd:simpleType>

<xsd:simpleTy pe name="PetsList" >
<xsd:list itemType="abc:M yPets"/>
</xsd:simpleType>

When I import the wsdl into my .NET project, PetsList is serialized as a
String. Is that the intended behaviour? Or is it simply because xds:list

is
not supported?

Thank you,


Nov 12 '05 #3
yes.

"TN" <TN@discussions .microsoft.com> wrote in message
news:D9******** *************** ***********@mic rosoft.com...
Thanks for the response.

Interesting, though. Then I guess, .Net just ignore the constraint (dog,
fish, cat) and allows the application to create a list with arbitrary
entries
say "dog chicken cat", even though chicken is clearly an invalid entry
according to the schema.

Thanks,

Tu

"Zafar Abbas [MSFT]" wrote:
PetsList will be serizlized as a string because the value space of a list
type is a string which contains a list of values corresponding to its
itemType, separated by whitespaces.

So a valid instance of PetsList is "dog cat fish" which is a String of
concatenated values.

"TN" <TN@discussions .microsoft.com> wrote in message
news:A8******** *************** ***********@mic rosoft.com...
> I have a list like this defined in my wsdl:
>
> <xsd:simpleTy pe name="MyPets">
> <xsd:restrictio n base="xsd:strin g">
> <xsd:enumeratio n value="dog"/>
> <xsd:enumeratio n value="cat"/>
> <xsd:enumeratio n value="fish"/>
> </xsd:restriction >
> </xsd:simpleType>
>
> <xsd:simpleTy pe name="PetsList" >
> <xsd:list itemType="abc:M yPets"/>
> </xsd:simpleType>
>
> When I import the wsdl into my .NET project, PetsList is serialized as
> a
> String. Is that the intended behaviour? Or is it simply because
> xds:list

is
> not supported?
>
> Thank you,


Nov 12 '05 #4

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

Similar topics

7
2273
by: Chris P. | last post by:
Hi. I've made a program that logs onto a telnet server, enters a command, and then creates a list of useful information out of the information that is dumped to the screen as a result of the command. Here's a generic version of the code in question: ##### # Prior code opens telnet connection "tn" and logs in. tn.read_until('> ') tn.write('THE COMMAND IS HERE\n')
0
1018
by: matt | last post by:
I am writing a web service using the WSDL first method. The schema specified that an element called Types is a list of QNames. It expects the message representation of this to look like <Types xmlns=q1:xyz>q1:Name1 q1:Name2 q1:Name3</Types The generated class for this however simply maps this to XmlQualifiedName Types which then proceeds to blow up if you pass a space delimited list I tried simply making the type XmlQualifiedName ...
4
2299
by: mattx | last post by:
I've posted this before but no one seems to respond. I need to know if this is a bug I am implementing a webservice against a preexisting schema/wsdl The schema specifies an element called Type that is a xml schema list of qname (i.e. it wants the message to have a space deimited list of qnames.) However wsdl.exe interprets this incorrectly as 'XmlQualifiedName Types' rather than 'XmlQualifiedName Types'. Simply changing the type in...
2
5342
by: thomasfj | last post by:
Hi, Accroding to MS documentation the use of union and list elements in XSD simpleType (valid according to W3C standards) is valid used as an dataset schema...but it's not!! When loading the schema (ReadXmlSchema method) you get this error message: doesn't support 'union' or 'list' as simpleType
0
980
by: KenD | last post by:
Are there any updates that provide support for xsd:union or list in simpleType elements when generating a dataset from an xsd file? I have the latest SP of the .NET Framework 1.1.
0
1333
by: Codex Twin | last post by:
hello group: The following is a fragment from a schema which defines the EWethnicCategoryStructure type. As you can see, its type is defined by the SimpleType enumeration EWethnicCategoryType. EWethnicCategoryType is defined as a union with the CommonEthnicCategoryType SimpleType enumeration. Now when I use the XSD tool to create a C# class of this schema, the resulting code does not include the SelectedEthnicCategory enumeration.
10
1964
by: Al Christoph | last post by:
Please forgive me if this is the wrong place to post this. The last place I posted got me a fairly rude response. I guess vb.db people just don't want to think about XML as database. At any rate, here is what I posted: I have downloaded the final production version of VS 2005 pro after testing with Team version. I wonder if I've been screwed or if it's just too early on a Sunday morning. It seems to me that it was relatively trivial to...
10
4504
by: Zamdrist | last post by:
http://www.treas.gov/offices/enforcement/ofac/sdn/ I wonder if it my be conceivable/practical to import on a regular basis, hands-off, the XML version of this list directly from it's source, the web, to a MS SQL database, in this case version 2K? Thoughts, ideas?
1
4305
by: maanasa | last post by:
Hi, I've one question. Can we have a list box in oracle forms so that i can select multiple values from that list. I keep the item property as list type and still drop down come up. Does Oracle forms support list type? Its quite urgent for me. Could any one help me on this? Thanks, Maanasa
0
8787
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
9473
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...
0
9334
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9259
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
9208
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8208
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...
0
6053
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4569
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...
3
2193
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.