In order to bring you the best possible user experience, this site uses Javascript. If you are seeing this message, it is likely that the Javascript option in your browser is disabled. For optimal viewing of this site, please ensure that Javascript is enabled for your browser.
Login  |   On Demand  |   Home  |   qad.com




QDoc Schemas 1.0
In QDoc syntax specification 1.0 two schemas are created, a base schema and a type schema. For the first version of maintainSalesOrder QDoc on eB, these would be titled:
maintainSalesOrder-eB_1.xsd
salesOrderType-eB_1.xsd
See QDoc Specifications and Standards for details about how to name QDocs and the elements included in the schema files.
Base QDoc Schema
The base QDoc schema primarily identifies the name and location of the type QDoc schema. An incoming QDoc is validated against this base schema for agreement with the existing QDoc schemas. The following is the entire base QDoc schema, maintainSalesOrder-eB_1.xsd.
<?xml version="1.0" encoding="UTF-8" ?>
- <schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:enc="http://www.w3.org/2002/12/soap-encoding"
xmlns:qdoc="http://www.qad.com/qdoc/eb"
xmlns:qcom="http://www.qad.com/qdoc/common"
targetNamespace="http://www.qad.com/qdoc/eb"
xml:lang="EN">
<include schemaLocation="salesOrderType-eB_1.xsd" />
- <element name="maintainSalesOrder">
- <complexType>
- <sequence>
<element name="salesOrder" type="qdoc:SalesOrderType"
   minOccurs="1" maxOccurs="unbounded" />
</sequence>
<attributeGroup ref="qcom:commonAttributes" />
</complexType>
</element>
</schema>
Type QDoc Schema
The type QDoc schema contains the program hierarchy and the field and data requirement details. Lines where three periods appear (...) show where lines have been removed for simplicity. A description of relevant document contents follows the file excerpt.
<?xml version="1.0" encoding="UTF-8" ?>
- <schema targetNamespace="http://www.qad.com/qdoc/eb"
xmlns:qcom="http://www.qad.com/qdoc/common"
xmlns:qdoc="http://www.qad.com/qdoc/eb"
xmlns:enc="http://www.w3.org/2002/12/soap-encoding"
xmlns="http://www.w3.org/2001/XMLSchema" xml:lang="EN">
<include schemaLocation="qdocCommon-eB_1.xsd" />
- <complexType name="SalesOrderType" qdoc:primaryKeys="soNbr">
- <complexContent>
- <extension base="qdoc:ApiTempTableType">
- <sequence>
<element name="operation" type="qdoc:OperationType" minOccurs="0" />
- <element name="soNbr" type="string" minOccurs="0">
- <annotation>
<documentation>Order</documentation>
</annotation>
</element>
- <element name="soCust" type="string" minOccurs="0">
- <annotation>
<documentation>Sold-To</documentation>
</annotation>
...
</element>
- <element name="ladQtyAll" type="decimal" minOccurs="0">
- <annotation>
<documentation>Qty Alloc</documentation>
</annotation>
</element>
</sequence>
</extension>
</complexContent>
</complexType>
</schema>
Each element is a field in the target QAD Enterprise Applications program. No validation is required in the XML file because the validation in QAD Enterprise Applications remains active during a QDoc entry session.