XML Protocol Abstract Model

Draft (13th February 2001)

This version:
@@@
Latest version:
@@@
Contributors: (alphabetical)
Mark Baker, Sun Microsystems, (mark.baker@canada.sun.com)
Martin Gudgin, DevelopMentor, (marting@develop.com)
Oisin Hurley, Iona, (ohurley@iona.com)
Marc Hadley, Sun, (marc.hadley@uk.sun.com)
John Ibbotson, IBM Corporation, (john_ibbotson@uk.ibm.com)
Scott Isaacson, Novell Inc.  (SISAACSON@novell.com)
Yves Lafon, W3C, (ylafon@w3.org)
Jean-Jacques Moreau, Canon, (moreau@crf.canon.fr)
Henrik Frystk Nielsen, Microsoft Corporation, (frystyk@microsoft.com)
Krishna Sankar, Cisco Systems, (ksankar@cisco.com)
Nick Smilonich, Unisys,  (nick.smilonich@unisys.com)
Lynne Thompson, Unisys,  (Lynne.Thompson@unisys.com)
Stuart Williams, Hewlett-Packard Company, (skw@hplb.hpl.hp.com)

Abstract

This document is a strawman proposal for an abstract model for XP.

The challenge of crafting a protocol specification is to create a description of behaviour that is not tied to any particular approach to implementation. There is a need to abstract away from some the messy implementation details of buffer management, data representation and specific APIs. However, in order to describe the behaviour of a protocol one has to establish a set of (useful) concepts that can be used in that description. An abstract model is one way to establish a consistent set of concepts. An abstract model is a tool for the description of complex behaviour – it is not a template for an implementation... although it should not stray so far away from reality that it is impossible to recognise how the required behaviours would be implemented.

Status of this Document

This document is the work of the Abstract Model Subgroup of the XML Protocol Working Group listed above. The work has benefited numerous discussions on the xml-dist-app@w3.org mailing list and from discussions with other members of the XML Protocol Working Group.

This document is not a W3C Technical Report. It is to be considered work in progress and does not imply endorsement by the W3C membership nor by the XML Protocol WG. It is currently under review and discussion by the XML Protocol WG.

Discussion of this document will take place on the public <xml-dist-app@w3.org> mailing list (Archives) as indicated by the email communiation rules provided in the WG charter.

Table of Contents

Issues

ToDo's

  1. Incorporate more terminology from the intermediaries discussion the section on message paths.
  2. Probably want to condense the use of the prefix "XML protocol xxxx" throughout.
  3. Paths and Targetting probably need more work. I've left things such that we could define paths (OrigPath, ActualPath) or so that XMLP applications can specify ImmediateDestinations which is kind-of single hop with appication based routing.

@@@


1.    Introduction

An abstract model is a useful means to develop a description of a system. It abstracts away from practical details such as specific API definitions, data representation, and buffer management. It provides a way to give a precise description of the externally visible behaviour without being prescriptive of implementation architecture.

1.1    Definition of Terms

This is yet another go at capturing our terminology. The intent is that the terminology here and in the XML Protocol requirements document should converge. This will probably need some more massaging.

XMLP Application

A client or user of the services provided by the XML Protocol Layer. An XML Protocol Application may acting in the initiating or responding role with respect to two-way request response operations and in the sending or receiving roles with respect to one-way operations. XML Protocol Applications may also act in an intermediary role with respect to both two-way and one-way operations.

XML Protocol Handlers are encapsulated within XML Protocol Applications.

 

XMLP Block

The syntactic construct or structure defined in an XML Protocol Module. XML Protocol Blocks are processed by XML Protocol Handlers as part of XML Protocol Application processing.

 

XMLP Intermediary

An XML Protocol Intermediary is an XML Protocol Application,  which processes a defined set of XML Protocol Blocks in an XML Protocol Message along an XMLP Message Path.

 

XMLP Handler

An XML Protocol Handler operates as a component of an XML Protocol Application and is responsible for processing XML Protocols Blocks targeted at it according to any rules defined in the corresponding XML Protocol Module.

 

XMLP Layer

The XML Protocol Layer is an abstraction that provides services or operations that transfers packages of XML Protocol Blocks between peer XML Protocol Applications via zero or more XML Protocol Intermediaries.

 

XMLP Message Path

The set of XML Protocol Applications and XML Protocol Handlers through which a given XML Protocol Message passes.

 

XMLP Message

An XML Protocol Message is the basic unit of communication between peer XML Protocol Processors.

 

XMLP Module

An XML Protocol Module is a basic unit for the definition of extensions to the XML Protocol. An XML Protocol Module encapsulates the definition of  one or more related XML Protocol Blocks and their associated processing rules. These processing are realised in one or more XML Protocol Handlers.

 

XMLP Node
An system that implement and XML Protocol Processor and which supports one or more XML Protocol Applications.

 

XMLP Operation

A primitive capability or service offered by the XML Protocol Layer. The XML Protocol Layer supports 3 operations described in detail in Section xx. XMLP Operations are modelled as sequences of event crossing the layer boundary between XML Protocol Processors and XML Protocol Applications.

 

XMLP Processor

An XML Protocol Processor provides the services of the XML Protocol Layer to local XML Protocol Application entities. XML Protocol Processors are responsible for enforcing the rules that govern the exchange of XML Protocol messages and for the binding of the XML Protocol layer to underlying communication protocols.

 

XMLP Receiver

In the context of an XML Protocol Operation, an XML Protocol Receiver is the XML Protocol Processor and associated XML Protocol Application which together process a received XML Protocol Message

I've tried to be sympathetic to the glossary here, but I think this is terms that has not yet been well defined.

 

XMLP Sender

In the context of an XML Protocol Operation, an XML Protocol Sender is the XML Protocol Processor and associated XML Protocol Application which together construct and send an XML Protocol Message

I've tried to be sympathetic to the glossary here, but I think this is terms that has not yet been well defined.

 

2.    XMLP Abstract Model Overview.

Figure 2.1 below presents and overview of the XML Protocol abstract model. 

overview of the XML Protocol abstract model

Figure 2.1 XML Protocol Model Overview

Figure 2.1 shows 5 nodes. Node I, III and V each contain XML protocol application components, which use the services of the XML protocol layer, and  XML protocol layer components which provide the services of the XML protocol layer. The services of the XML protocol layer are abstracted at the upper layer boundary and consist of three operations which will be described in detail in Section xx.

Two of these operations, XMLP_DATA and XMLP_UNITDATA correspond to the exchange of messages using two-way request/response and one-way only message patterns respectively. These two operations are available sending and receiving XML protocol applications, such as at Nodes I and V in figure 2.1. The third operation, XMLP_INTERMEDIARY, provides explicit support for intermediary XML protocol nodes such as Node III in figure 2.1.

Nodes II and IV are intermediaries that operate within underlying protocol layers such as HTTP proxies, SMTP message routers and arguably even IP routers and 802.1 MAC layer bridges.

Figure 2.1 can be used to discuss a number of message exchange scenarios. For example, the XML Processor at Node III is bound to two, possibly different, underlying protocols. It could serve merely as a 'helper' to transition an XML protocol message from one underlying protocol to another in circumstances where the initiating processor is bound to a different underlying protocol infrastructure than the receiving or responding node, say Node V in figure 2.1. A similar scenario arises if Node III is part of an XML Protocol Firewall that controls the ingress and egress of messages from a given organisation. In both these circumstances the XML Protocol Handler(s) within the XML Protocol Application at Node III need not be present.

If we turn our attention to the operation of the XML Protocol Applications above the XML Protocol layer boundary. We have a scenario in which the application at Node I has some XML protocol blocks to deliver to Node V. In addition the application at Node I needs to trigger Intermediary functionality at Node III by the inclusion of several XML Protocol Blocks. "XML Protocol Block 1" is targeted at "XML protocol handler (e) " within the application on Node V. Block 2 is targeted at handler(c) which replaces Block 2 with Block 3. Also, the XML protocol application at Node III inserts Block 4 into the message forwarded from Node III to Node V.  Blocks 3 and 4 are targeted at  handlers (f) and (g).

3    XML Protocol Layer Service Definition

This section focuses on the definition of an abstract interface between the XML Protocol Applications and the XML Protocol Layer. In needs to be remembered that the layer interface described in this section is abstract - its purpose is to enable description, not to constrain implementation.

The services provided by the XML Protocol layer are modelled as three operations. Two operations, XMLP_DATA and XMLP_UNITDATA provided services to the XML Protocol nodes that originate and terminate the exchange of XML Protocol messages. XMLP_DATA and XMLP_UNITDATA support two-way request/response and one-way message exchanges respectively.

The third operation, XMLP_INTERMEDIARY provides explicit support for intermediary XML Protocol applications to provide value added services to messages in transit.

3.1.    XMLP_Data Operation

XMLP_Data is a best effort  two-way request/response operation which is modelled by four primitives (events). Each primitive models a transmission, reception or status event at interface between an  XP layer entity and an XP Processor:

XMLP_Data.request( To, [ImmediateDestination], [OrigPath], [{Headers}], [{Bodies}], [{Attachments}], [BindingContext]);

XMLP_Data.indication( To, From, [OrigPath], [ActualPath], [{Faults}], [{Headers}], [{Bodies}], [{Attachments}], [BindingContext]]);

XMLP_Data.response( [ImmediateDestination], [OrigPath], [{Faults}], [{Headers}], [{Bodies}], [{Attachments}], [BindingContext]]);

XMLP_Data.confirm( From, Status, [{Faults}], [{Headers}], [{Bodies}], [{Attachments}], [BindingContext]);

All parameters are detailed in Section 3.4

Figure 3.1 below illustrates the normal use of these primitive at initiating and responding XML protocol applications.

initiating and responding XML protocol applications

Figure 3.1 XMLP_DATA Operation

The operation is best effort which means that it can fail silently with the loss of the message in transit. A lost message may have been partially processed at one or more intermediary XML protocol applications. It may even have reached have reached responding XML protocol application and the response may have been lost on its return path. Both the success or failure of the operation is reported via the XMLP_Data.confirm primitive. However, there can be circumstances in which the failure is silent and the XMLP_Data.confirm primitive fails to be invoked to complete the operation.

XMLP_Data.request: Invoked by the initiating XML protocol application to start a two-way request/response operation.

XMLP_Data.indication: Invoked at the responding XML protocol application to deliver the outbound XML protocol message

XMLP_Data.response: Invoked at the responding XML protocol application to return a response message to the imitating XML protocol application.  From the point-of-view of the responding XML application the operation has completed once this primitive has been invoked.

XMLP_Data.confirm: Normally invoked to deliver the response message to the initiating XML protocol application. This primitive may also be used to inform of the failure of the operation in those circumstances when a failure can be reported - some failures may be silent. From the point-of-view of the initiating XML application the operation has completed once this primitive has been invoked.

An XML Protocol application may engage in multiple concurrent operations with the same or different intermediary and responding XML protocol applications. These concurrent operations are independent and the order in which they are processed by the responding and intermediary applications may be different from the order in which they are invoked or complete at the initiator. 

Failures that arise during message processing at intermediary and responding XML protocol applications result in the inclusion of Faults in both .indications and .confirm.

Assumes that non-fatal failures at intermediaries are fed forward so that they can also be fed back as part of the response to initiating applications

This operation may be implemented over HTTP, HTTPS, SSL/TCP, TCP and SMTP.

3.2.    XMLP_UnitData Operation

XMLP_UnitData is a best effort one-way message transfer operation which is modelled by three primitives (events). Each primitive models a transmission, reception or status event at interface between an  XP layer entity and an XP Processor:

XMLP_UnitData.request( To, [ImmediateDestination], [OrigPath], [{Headers}], [{Bodies}], [{Attachments}], [BindingContext]);

XMLP_UnitData.indication( To, From, [OrigPath], [ActualPath], [{Faults}], [{Headers}], [{Bodies}], [{Attachments}], [BindingContext]]);

XMLP_UnitData.confirm( Status, [{Faults}], [BindingContext]);

All parameters are detailed in Section 3.4

Figure 3.2 below illustrates the normal use of these primitive at the sending and receiving XML protocol applications.

sending and receiving XML protocol applications

Figure 3.2 XMLP_DATA Operation

The operation is best effort which means that it can fail silently with the loss of the message in transit. A lost  message may have been partially processed at one or more intermediary XML protocol applications. Both the success or failure of the operation is reported via the XMLP_UnitData.confirm primitive. However, there can be circumstances in which the failure is silent and the XMLP_UnitData.confirm primitive fails to be invoked to complete the operation. In these circumstances it may not be possible to determine whether the message has been delivered to the receiving XML protocol application.

XMLP_UnitData.request: Invoked by the initiating XML protocol application to start a one-way transfer operation.

XMLP_UnitData.indication: Invoked at the responding XML protocol application to deliver a received XML protocol message

XMLP_UnitData.confirm: Used to report on the delivery status of the operation. This primitive may be used to report on the success or failure to deliver a message to the receiving XML Protocol application. In general, it is not possible to assert that a message has been delivered to the intended recipient without engaging in further interactions. With care it is possible to assert definite failure to deliver provided that there is no chance of subsequent delivery. From the point-of-view of the initiating XML application the operation has completed once this primitive has been invoked.

An XML Protocol application may engage in multiple concurrent operations with the same or different intermediary and receiving XML protocol applications. These concurrent operations are independent and the order in which they are processed by the receiving and intermediary applications may be different from the order in which they are invoked or complete at the sending XML protocol application. 

Failures that arise during message processing at intermediary and responding XML protocol applications may result in the inclusion of Faults in .indication and .confirm primitives.

Assumes that non-fatal failures at intermediaries are fed forward so that they can also be fed back as part of the response to initiating applications

This operation may be implemented over HTTP, HTTPS, SSL/TCP, TCP and SMTP.

3.3   XMLP_Intermediary Operation

It may be the case that this operation would be better described by integrating it with the XMLP_Data and XMLP_UnitData operations as say, XMLP_Data.int_indication, XMLP_Data.int_resend, XMLP_UnitData.int_indication and XMLP_UnitData.resend. However this would lead to 4 or even 6 events rather than 2 albeit with the operationType parameter.

The XMLP_Intermediary operation is used at intermediary XML protocol applications to invoke local intermediary processing of the message and to 

XMLP_Intermediary.indication( To, From, OperationType, [OrigPath], [ActualPath], [{Faults}], [{Headers}], [{Bodies}], [{Attachments}], [BindingContext]]);

XMLP_Intermediary.resend( [ImmediateDestination], Status, [{Faults}], [{Headers}], [{Bodies}], [{Attachments}], [BindingContext]]);

All parameters are detailed in Section 3.4

The path related parameters are not in the resend primitive, because... if we do have path as a 1st class notion then they will be updated en-route by the XMLP Processor and not by the intermediary application. Likewise, we could prevent the application from updating the Payloads by not allowing it to return them in the .resend. They are all present in the .indication so that the intermediary can inspect them. DO WE WANT TO DEFINE INTERMEDIARIES SO THAT THEY ARE NOT ALLOWED TO MODIFY PAYLOADS?

  Figure 3.3 below illustrates the normal use of these primitives at an intermediary XML protocol application.

intermediary XML protocol application

Figure 3.3 XMLP_Intermediary Operation

This operation effectively interposes the intermediary XML protocol application in the path between sending/initiating and receiving/responding XML protocol applications.

XMLP_Intermediary.request: Invoked by the XML protocol processor at an intermediary node to provide an intermediary XML application the opportunity to perform intermediary processing on a message in transit.

XMLP_Intermediary,resend: Invoked by an intermediary XML protocol application once it has completed intermediary processing of a message in transit. The intermediary application may report  fatal or non-fatal failure via the Status parameter.

A fatal error in the request leg of an XMLP_Data operation (two-way/request response) results the premature termination of the operation and the return of any accumulated (non-fatal errors) and partially processed XML protocol message toward the initiating XML protocol application.

A fatal error in the response leg of an XMLP_Data operation results in the silent failure of the operation and the loss of the response message.

Non-fatal errors during intermediary processing result in the accumulation of faults into the XML Protocol message prior to onward transmission. In an XML_Data operation, non-fatal faults are delivered to the responding XML protocol application and may be propagate along the response path back to the initiating XML protocol application.

The  fatal/non-fatal fault handling does not represent any consensus from the sub-group. It is present merely to start some discussion of how fault processing might happen in the presence of intermediaries.

fault processing

Figure 3.4 Normal XML_Data operation through an intermediary

Figure 3.4 shows the normal behaviour of an XML_Data operation through an intermediary in the absence of fatal failures. The three vertical lines at represent the local XML protocol layer boundaries and the small arrows above denote the up/down orientation of the boundary.  Figure 3.5 below shows and alternate representation of the same scenario.

across XML layers

Figure 3.5 Normal XML_Data operation through an Intermediary (alternate treatment)

The scenario depicted in figures 3.4.and 3.5 show just a single intermediary interposed in the operation. Also note that the path taken by a response does not pass through an intermediary, although it could.

In a request/response operation it may be necessary to constrain the intermediaries visited by a response to some subset of those visited by the request - because the request constructed the channel through which the response is expected to flow.

Figure 3.6 and 3.7 below offer a similar treatment of the XMLP_UnitData operation conducted through intermediaries.

through intermediaries

Figure 3.6 Normal XMLP_UnitData operation through an Intermediary

through intermediaries

Figure 3.7 Normal XMLP_UnitData operation through and Intermediary (alternate treatment)

It is worth noting that the XMLP_UnitData.confirm is generated from within the XMLP Layer. It may indicate anything from the mere fact that the initial message has been sent by the sending node, that its has been received and/or sent from the intermediary node or that it has indeed been delivered to the receiving node. What it means in a given circumstance will depend upon the capabilities of the underlying communications protocols used to construct the message path.

Section 3.4 Operation Parameters

This section describes the operation parameters used in the operation primitives described above.

ImmediateDestination, OrigPath and ActualPath are all concerned with message routing through Intermediaries. ImmediateDestination is the means by which Sending/Initiating and intermediary XML protocol applications can denote the destination of the next hop of a message path - enabling XML Modules to be defined in the future that can implement path semantics. OrigPath and ActualPath accomodate the alternate view that path support must be explicit and visible.

To

An identifier that denotes the XML protocol application that a message was originally sent to by the initiating or sending XML protocol application.

.response primitives do not carry a To parameter because the intended recipient of the response is implicitly the initiating XP client

 

From

An identifier that denotes the sending XML protocol application  in .indication and .confirm primitives.

In .indication primitives this parameter makes the identity of the sending/initiating XML protocol application available to the receiving/responding XP Processor. 

[Intermediaries may obscure this or we may require that they don't... discuss!]

In the XMLP_Data.confirm primitive this parameter conveys the identity of the receiving/responding XML protocol application after any redirections that may have been imposed by underlying protocols

[Again possibly obscured by intermediaries...]

In the XMLP_UnitData.confirm primitive, this parameter conveys the identity of the XML protocol application to which an XMLP message was sent after any redirections imposed by underlying protocols. NB. Further redirections may occur that cannot be reported.

 

ImmediateDestination
An identifier that denotes the immediate destination of an XMLP message. If unspecified the default value for this parameter is the value of the To parameter. This enables sending/initiating, intermediary and responding XML protocol applications to address the message to the next intermediary on route.

 

OrigPath

A list of identifiers that denote, in order, the path of intermediaries that the originating XML protocol application wishes to process a message prior to delivery to the intended recipient.

We may wish to support the concepts of both strict and loose sourcerouting of  XMLP messages as well as implicit XMLP message routing. The full route taken by a message may be different from that requested and not fully known to either initiating or responding applications. Depending on actual design it may not be possible to preserve the value of this parameter from .request through to .indication. 

 

ActualPath

A list of identifiers that denote the actual path of intermediaries used between sending/initiating and receiving/responding XML protocol applications. This may differ for OrigPath due to redirections imposed by underlying protocols. During two-way operations the full round-trip path may be recorded.

The actual path taken by a message may only be partially reported and may be entirely inaccesible.

 

Faults
An optional list of Faults that may accumulate as a message passes through multiple intermediary XML protocol applications, a responding XML protocol application and at further intermediary XML protocol applications on the response leg of a two-way operation. 

 

Headers
A container for XML protocol  blocks that are intended to be processed by intermediaries.

 

Bodies
A container for XML protocol blocks that are intended to be processed solely by the receiving, responding or initiating XML protocol application. 

 

Attachments

This is a list of attachments that are required to accompany the message. These attachments are regarded as opaque byte arrays whose content is preserved between neighbouring XML protocol applications.

Where the underlying protocol(s) natively support attachments these native facilities will be used in accordance with the appropriate binding specification. Where there is no native support for attachments in the underlying protocol, an XML friendly character based transformation will be applied to carry the attachments within the XML protocol envelope.

From the point-of-view of abstract service definition the actual mechanism used to transfer attachments is immaterial, however particular bindings may employ more efficient mechanisms than others.

[NB. This places an obligation on XP protocol binding specifications to specify how attachments are to be carried.]

 

BindingContext

This parameter references an abstract structure that carries information pertinent to the underlying protocol binding(s). For example it may carry certificates, ids and passwords to be used by the sending/initiating XML protocol application to authenticate itself and/or to establish a secure channel. At the responding XML protocol application it may carry the authenticated id of the principal on whose behalf the operation is being conducted.

If the information present in the BindingContext is inadequate for the execution of a given service primitive the invocation of that primitive will fail with a result that indicates why progress was not possible.

BindingContext is optional and if not supplied the local default binding will be used. In the case of multiple bindings being available, inbound BindingContext indicates how an inbound message was received and outbound BindingContext constrains the choice of binding used for a given operation.

[NB This concept places another obligation on XP protocol binding specifications in that they must enumerate what binding specific information they require in an outbound BindingContext and what binding specific information they provide in inbound BindingContexts.]

 

Status
In .confirm primitive this parameter indicates the disposition of the request operation which may be: MessageSent, MessageDelivered, Unknown and  FailedAtIntermediary. The interpretation of a status value may be augmented by information carried in the Faults parameter and the BindingContext.

In the XMLP_Intermediary.resend primitive, the Status parameter may take on the values: Ok, NonFatalFailure and FatalFailure. 

 

OperationType
In XMLP_Intermediary.indication primitives, this parameter indicates the type of operation being intercepted by the intermediary. It can take on the values of: UnitData, Request and Response to denote a XMLP_UnitData operation or the request and response legs of an XML_Data operation.

 

5.    XML Protocol Applications

An XML protocol application is an entity that makes use of the core messaging services of the XML protocol. XML protocol applications may initiate, respond or act as intermediaries in XML protocol operations. Logically, an XML protocol application contains a number of XML protocol handlers that are responsible for the applying the processing rules associated with one or more XML protocol modules. The unit of exchange between XML protocol handlers are XML protocol blocks.

XML protocol blocks are aggregated into XML protocol messages and may be targetted at particular XML protocol handlers (see Section 5.2). Targetted XML protocol blocks are delivered together with the rest of the XML protocol message which encapsulates them  (and its attachments if any) first to the XML protocol application that contains the targeted handler. The XML protocol application is then responsible for identifying and dispatching the targeted XML protocol handlers. 

handlers

Figure 5.1 XML Protocol Application

Each handler may succeed, fail non-fatally or fail fatally. It is the responsibility of the XML protocol application to determine the overall result of the actions of any XML protocol handlers it invokes and to augment any Faults structure carried in the ongoing message. In cases where there are multiple influences on the ImmediateDestination, it is also the responsibility of the XML protocol application resolve any conflicts.

5.1    XML Protocol Modules

XML protocol modules are the unit of extension within the XML protocol. Within this abstract model XML protocol modules reside as components of an XML protocol application. An XML protocol module encapsulates the syntactic constructs if an extension, known as XML protocol blocks, and the behavioural rules associated with the generation and  processing of an XML protocol block, which are realised in XML protocol application components known as XML protocol handlers.

Thus the definition of an XML protocol module requires the definition of the syntactic structure and semantics of one or more XML protocol blocks and the definition of the behavioural rules (if any) that apply to the generation and handling of those XML protocol blocks. An XML protocol handler may provided support for multiple XML protocol modules.

5.2    XML Protocol Message Routing and Targetting 
        aka Naming and Addressing :-)

Within the XML protocol there are two entities that need to be addressed or targeted. XML Protocol Applications and XML Protocol Handlers. It will be apparent from the preceding discussion that within this abstract model XML protocol handlers are deemed to reside within or operate as part of an XML protocol application. This implies that the targeting of a particular XML protocol block at a particular XML protocol handler, implicitly targets the XML protocol message at the XML protocol application that contains the targeted handler.

There are several ways in which an XML protocol block may be targeted at an XML protocol handler:

Needs to use some terms here that arise from the intermediaries thread Martin started

A XML protocol mesage path can be viewed as the sequence of handlers that an XML protocol message passes through between initiating/sending XML protocol application and receiving responding XML protocol application. With reference to figure 2.1, the diagram in  figure 5.2 depicts the message path of the corresponding XML protocol message under the XML_UnitData operation.

message path

Figure 5.2 XML Message Path

The path in figure 5.2 shows sequential handler processing at the sending node, Node I, while the handler processing at Nodes III and V is concurrent (at least logically). Combinations of handlers that can be invoked concurrently from within an XML protocol application are said to be mutually orthogonal.

6.    Underlying Protocol Bindings

It is the intent that the XML protocol be capable of being bound to a variety of underlying communication protocols. The XML protocol working group will define a binding to HTTP. It is anticipated that others will create bindings to SMTP, TCP, SSL, BxxP and others.

6.1    BindingContext

Each of these underlying protocols supports different features and capabilities and it is not plausible or desirable to provide a detailed abstraction that captures the full range of diversity. The core of XML protocol in respect of the exchange of XML protocol messages takes a lowest common denominator approach by regarding the underlying channel as potential lossy and capable of mis-ordering and duplication. Underlying protocols may offer better assurances of delivery probability, delivery ordering and at-most once delivery behaviour.

In the service abstraction provided above, an abstract parameter known as BindingContext is introduced. The primary purpose of BindingContext is to act as a collecting 'bucket' for parameters that control the functionality of the particular set of underlying protocols available at any given node.

It is expected that the authors of XML Protocol binding specifications will add structure beneath BindingContext to cover the features and capabilities of the underlying protocol being bound. This may also include a descriptor of the ordering, loss and duplication properties of the underlying protocol, although this should be treated with caution in multi-hop scenarios.

Some BindingContext extensions may be of more general applicability than just a single binding. For example, the references to user ids, private keys and public certificates necessary for SSL and HTTPS could be shared between both bindings (were they to exist).

One would there for expect the structure under BindingContext to grow along the lines of:

BindingContext.Shared    //A substructure for information shared by several bindings
BindingContext.HTTP      //A substructure for information related to HTTP
BindingContext.SMTP      //....

....and so on.

The manipulation of fields within the BindingContext may be driven from within, for example, an intermediary XML protocol application on the basis of constructs carried as XML protocol message blocks within the message being carried.

Hopefully this captures the general idea behind BindingContext... the details will evolve over time... indeed they will evolve as bindings get described.

6.2    Attachment of Arbitrary Content

This topic is subject to active discussion and the view presented here is *very* preliminary. There is likely be considerable diversity of viewpoints that are not captured let alone resolved here.

Another role of an XML protocol binding is to invoke the services of underlying protocols and to introduce any mechanism required to map between the semantics of the underlying protocol and those of the XML protocol core message delivery operations XMLP_Data and XMLP_UnitData. The attachment of arbitrary content to an XML protocol message is one facet of this mapping.

The core XML protocol messaging services intrinsically handle arbitrary attachments through the use of the Attachments parameter. The expectation is that the design of XML protocol WILL specify a means for encoding arbitrary content and carrying it within an XML envelope. This mechanism will leverage and pre-existing work within XML Schema, and will also provide mechanisms for embedding complete, arbitrary, XML documents within the outer XML protocol message envelope (itself an XML construct).

Some underlying protocols will support more efficient ways of carrying arbitrary content and or multiple XML documents. The normative bindings to an underlying protocol MUST define the mechanism used by that binding to carry attachments containing arbitrary content. In the absence of any statement to the contrary in the definition of a particular protocol binding, the default XML based encoding for arbitrary content attachments will be taken as having been specified. Any other scheme specified for a particular binding must have functional capabilities at least as capable as the default XML based encoding scheme, in particular it must be possible to reference the individual attachments from within the XML protocol message envelope.

There is an issue as to whether something like SOAP1.1 over HTTP and SOAP 1.1 with attachments over HTTP constitute two distinct bindings or whether they should be amalgamated as a single binding over HTTP. XML protocol will likely have to face the same question. A distinction would be, in the case of a combined binding, the inbound side of the binding at least would have to support both forms, although the outbound side could make a fixed (implementation dependent) choice one way or the other. If we choose the two distinct bindings route we have two no-interoperable bindings - ie. there would need to be an interworking  (helper) unit of some description in the message path translate the underlying protocol envelope between bindings. By analogy, an XMLP 1.0 over HTTP would not be capable of directly ingesting an XMLP 1.0 with Attachments envelope without help.

7.    Security

The XML protocol operates on top of a number of underlying protocols that intrinsically support authentication and/or privacy eg. HTTPS, S/MIME,  SSL/TCP and  IPSEC. Where these underlying capabilities can be controlled fields in the BindingContext may be used to provide the relevant ids, keys and other parameters that may be crucial to the correct operation of the underlying security capabilities.

In addition, higher level techniques may also be used to digitally sign and/or encrypt, check and decrypt  components of an XML protocol message within an XML protocol application (whether sending, receiving or intermediary). We fully envisage the development of XML protocol modules for these purposes.

This section is a bit of a placeholder until we can develop a more robust statement