[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

A question about a complex type

  • To: <xml-dev@l...>
  • Subject: A question about a complex type
  • From: "Sergey Beryozkin" <sberyozkin@z...>
  • Date: Tue, 11 Dec 2001 17:14:26 -0000
  • Organization: Zandar Technologies
  • References: <003e01c172b5$1c2eca00$acc469d5@pcukmka>
  • Reply-to: "Sergey Beryozkin" <sberyozkin@z...>

complex type to xml
Hello,

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"/>
</FileInfo>

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
instance.
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,
Cheers
Siarhei Biarozkin



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.