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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] A question about a complex type

[ Lists Home | Date Index | Thread Index ]

Jeff, thanks a lot for your ideas,
In my own client I've a control over the serialization process, so this
problem is not an issue; it's when some of our customers decide to write
their own front-ends does this
problem arises, because they'll use a third-party toolkit to generate
proxies from our wsdl, and as such, they'll have no control over the way the
body of the request is formed, but in the end of the day they'll just have
to pass a complete FileInfo instance or, more likely, we'll have to add
corresponding set-methods to our web-service interface.
 I guess I'll need to try to find a toolkit which might have some plug-in
ports for external XSLT modules. If I have any results , I'll come back to
this thread,
Thanks
Siarhei Biarozkin
----- Original Message -----
From: "Jeff Lowery" <jlowery@scenicsoft.com>
To: "'Sergey Beryozkin'" <sberyozkin@zandar.com>
Sent: Wednesday, December 12, 2001 7:01 PM
Subject: RE: [xml-dev] A question about a complex type


> I was thinking you'd might be able to subtype the base FileInfo type using
> restriction, but it would require some sort of casting operation. You
might
> use XSLT to do the cast to the subtype, or you could consider laxly
> validating the FileInfo type so that non-subtype elements are disregarded
> for validation purposes.
>
> So, the short answer is: I have none. Just a couple of ideas you might
> explore.
>
> > -----Original Message-----
> > From: Sergey Beryozkin [mailto:sberyozkin@zandar.com]
> > Sent: Wednesday, December 12, 2001 1:50 AM
> > To: Jeff Lowery; xml-dev@lists.xml.org
> > Subject: Re: [xml-dev] A question about a complex type
> >
> >
> > Hello,
> > updateActiveFile(FileInfo) command is intended for updating a complete
> > active FileInfo instance on the server ( wchich is XML-unaware simple
> > embedded device, the poscondition of this operation is that
> > current display
> > output is also updated).
> > I could've used set operations per each attribute of
> > FileInfo, but there're
> > more than 20 attributes, including deeply nested ones.
> > Probably, I'd need to use an XSLT stylesheet on the client
> > side to define a
> > set of rules, which would tell to the serializer which
> > remaiming elements of
> > type FileInfo to pass, depending on the value of its first
> > element "mask" ?
> > Thanks
> > Siarhei Biarozkin
> > ----- Original Message -----
> > From: "Jeff Lowery" <jlowery@scenicsoft.com>
> > To: "'Sergey Beryozkin'" <sberyozkin@zandar.com>
> > Sent: Tuesday, December 11, 2001 6:34 PM
> > Subject: RE: [xml-dev] A question about a complex type
> >
> >
> > > Is update FileInfo updating a complete FileInfo instance,
> > or constructing
> > > one?
> > >
> > > > -----Original Message-----
> > > > From: Sergey Beryozkin [mailto:sberyozkin@zandar.com]
> > > > Sent: Tuesday, December 11, 2001 9:14 AM
> > > > To: xml-dev@lists.xml.org
> > > > Subject: [xml-dev] A question about a complex type
> > > >
> > > >
> > > > 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
> > > >
> > > >
> > > >
> > > > -----------------------------------------------------------------
> > > > The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> > > > initiative of OASIS <http://www.oasis-open.org>
> > > >
> > > > The list archives are at http://lists.xml.org/archives/xml-dev/
> > > >
> > > > To subscribe or unsubscribe from this list use the subscription
> > > > manager: <http://lists.xml.org/ob/adm.pl>
> > > >
> > >
> > >
> >
> >
> > -----------------------------------------------------------------
> > The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> > initiative of OASIS <http://www.oasis-open.org>
> >
> > The list archives are at http://lists.xml.org/archives/xml-dev/
> >
> > To subscribe or unsubscribe from this list use the subscription
> > manager: <http://lists.xml.org/ob/adm.pl>
> >
>
>





 

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

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