QDoc Message Envelope
Q/LinQ currently stores all control information regarding its export and import documents in non-XML data known as document control tags. While it is able to both export and import documents preceded by these tags, the tag format is non-XML and Q/LinQ-specific. These tags are not processed easily by XML-based tools such as XSLT stylesheets.
A standard, QAD-specific message envelope for use by QXtend as well as Q/LinQ is defined in this section using SOAP 1.0 syntax. It includes a minimal set of elements that must be understood by both Q/LinQ and QXtend, although additional product-specific elements can be added to it as needed in order to support interoperability with third parties. Its content is also loosely based on the envelopes/headers prescribed by the JMS, OAGIS, and ebXML specifications.
The present version of the QDoc envelope is likely to change significantly in future releases, as future XML-based messaging standards are published and adopted over time by the software industry.
While the QDoc message envelope is designed primarily to contain QDocs, it can also be used to contain any other type of document exported or imported by Q/LinQ such as OAGIS BODs. Its use is required for all QDocs.
Based on SOAP standards, all QDoc messages consist of the XML root element Envelope with two child elements, Header and Body. The Body element contains a single QDoc as described in the preceding sections as its only payload. The Header element consists of one or more header block elements named qdoc as described in the following section.
The Envelope, Header, and Body elements are defined and must be labeled using the following SOAP Envelope namespace URI:
They may contain attributes, but these may be ignored.