OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   A question about a complex type

[ Lists Home | Date Index | Thread Index ]


I have the following complex type definition ( which is part of our
web-services type library defined in wsdl):

<complexType name="FileInfo">
      <element name="mask" type="int"/>
      <element name="pips" type="tns:PipInfo" minOccurs="0"/>
      <element name="captions" type="tns:LabelInfo" minOccurs="0"/>
      <element name="clocks" type="tns:LabelInfo" minOccurs="0"/>

My intention is to use "mask" as a hint for the processing module as to
which of the remaining elements defined by FileInfo type are in a FileInfo
Is there a better way to express this semantics using XMLSchema ?

One problem is that a client auto-generated by a wsdl-compiler expects an
instance of FileInfo as a parameter to some of the operations. In operations
like saveFile(FileInfo) I will pass FileInfo as it's defined in wsdl, but in
operations like updateActiveFile(FileInfo) I'd just like to set FileInfo's
mask and let the underlying XML software to deside how to send FileInfo over
the wire. Is it possible at all ?

Thanks a lot,
Siarhei Biarozkin


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS