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

RE: Categories of Web Service messages: data-oriented v s acti


RE:  Categories of Web Service messages: data-oriented v s acti
> From: Jeff Lowery [mailto:jlowery@s...]

<snip/>

> Perhaps more to the point is:
> 
> Should one mix XML-formatted process descriptions with metadata? 
> 
> In other words, have one schema for process description and 
> another for data
> description. Do these two descriptions have to be tightly 
> bound in the same
> document?

When that can be easily achieved, I think that makes sense. However, this
can get messy.

We tend to employ hierarchical messages that indicate an action with
associated data, but which also includes embedded child actions that are
evaluated in the context of the containing action and its associated data.
For example, we may have a message with a root element "updateContact" that
contains elements for name, title, etc. But it may also contain an
"updateAddressInfo" element, which itself contains "updateAddress",
insertAddres", or "removeAddress" elements, each containing data relevant to
an address record associated with the contact that should be added, removed,
or updated. (Note that the use of the term "record", here, should not be
interpreted as meaning the XML, in our case, is just a straightforward
mapping of a database record. We are operating at a layer of abstraction,
here, above the actual database structures used.)

The structure of the data within each command can also change slightly
dependent upon the command. For example, an "update" or "remove" message
must include some key that can be used to match up with the corresponding
data (either our system's object id, or a unique marker used by an external
system for synchronization of data), whereas an "insert" may omit such a key
(and if a key is included, it must be the unique marker used by the external
system for synchronization, not the object id assigned by our system).

I think this could often be modelled, though, by specifying the data as an
XML Schema type, and having the command be an element that extends that
type.

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.