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  |   Cloud ERP  |   Home  |   qad.com



  •     QAD Glossary

  • QAD Enterprise Applications QDoc Response (1.0)
    This is a sample partial QDoc response to the preceding QDoc request based on the API method maintainPurchaseOrderResponse. In this example, as with most service interface and QAD JIT Sequencing API methods, the input data is echoed back as output with any changed or default values, as well as any exception messages at the bottom.
    The QDoc message envelope is omitted, as it is described elsewhere. See QDoc Message Envelope. The examples presume that the earliest supported QAD Enterprise Applications release is eB.
    <?xml version="1.0" encoding="UTF-8"?>
    <maintainPurchaseOrderResponse version="eB_1"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:enc="http://www.w3.org/2002/12/soap-encoding"
    xmlns:rpc="http://www.w3.org/2002/12/soap-rpc"
    xmlns="http://www.qad.com/qdoc/eb"
    xmlns:qcom="http://www.qad.com/qdoc/common"
    schemaLocation="http://www.qad.com/qdoc/eb/schemas"
    xml:lang="EN"
    >
    <rpc:result>returnValue</rpc:result>
    <returnValue>success</returnValue>
    <purchaseOrder>
    <nbr>PO1234</nbr>
    <vend>00000001</vend>
    <ordDate>2002-04-01</ordDate>
    <rmks>This is a test PO</rmks>
    ...
    <purchaseOrderCmt>
    <seq>01</seq>
    ...
    <cmmt>Line 1 of comment!</cmmt>
    </purchaseOrderCmt>
    <purchaseOrderDet>
    <line>01</line>
    <dueDate>2002-05-01</dueDate>
    <part>10-10000</part>
    <qtyOrd>50</qtyOrd>
    ...
    </purchaseOrderDet>
    <purchaseOrderDet>
    <line>02</line>
    <dueDate>2002-06-01</dueDate>
    <part>10-15000</part>
    <qtyOrd>20</qtyOrd>
    ...
    </purchaseOrderDet>
    </purchaseOrder
    <qcom:exception>
    <qcom:number>864</qcom:number>
    <qcom:description>SITE ADDRESS DOES NOT EXIST
    </qcom:description>
    <qcom:severity>error</qcom:severity>
    <qcom:field>site</qcom:field>
    <qcom:context>PO1234</qcom:context>
    </qcom:exception>
    </maintainPurchaseOrderResponse>
    The following XML schema fragment describes the syntax of the previous sample. The PurchaseOrderResponseType definition is used in the QDoc response and is stored in a separate file and included in the top-level schema. This defaults to include primary fields and can be replaced by a user-defined file that contains user-defined fields.
    <complexType name="PurchaseOrderResponseType">
    <sequence>
    <element name="nbr" type="string" minOccurs="0">
    <annotation>
    <documentation>Purchase Order</documentation>
    </annotation>
    </element>
    <element name="vend" type="string" minOccurs="0">
    <annotation>
    <documentation>Vendor</documentation>
    </annotation>
    </element>
    <element name="ordDate" type="string" minOccurs="0">
    <annotation>
    <documentation>Order Date</documentation>
    </annotation>
    </element>
    <element name="rmks" type="string" minOccurs="0">
    <annotation>
    <documentation>Remarks</documentation>
    </annotation>
    </element>
    <element name="purchaseOrderCmt" type="qdoc:PurchaseOrderCmtResponseType" minOccurs="0" maxOccurs="unbounded"/>
    <element name="purchaseOrderDet" type="qdoc:PurchaseOrderDetResponseType" minOccurs="0" maxOccurs="unbounded"/>
    </sequence>
    </complexType>
    <complexType name="PurchaseOrderCmtResponseType">
    <sequence>
    <element name="seq" type="string" minOccurs="0">
    <annotation>
    <documentation>Sequence</documentation>
    </annotation>
    </element>
    <element name="cmmt" type="string" minOccurs="0">
    <annotation>
    <documentation>Trans Comment</documentation>
    </annotation>
    </element>
    </sequence>
    </complexType>
    <complexType name="PurchaseOrderDetResponseType">
    <sequence>
    <element name="line" type="integer" minOccurs="0">
    <annotation>
    <documentation> Ln</documentation>
    </annotation>
    </element>
    <element name="dueDate" type="integer" minOccurs="0">
    <annotation>
    <documentation> Due Date</documentation>
    </annotation>
    </element>
    <element name="part" type="integer" minOccurs="0">
    <annotation>
    <documentation> Part</documentation>
    </annotation>
    </element>
    <element name="qtyOrd" type="integer" minOccurs="0">
    <annotation>
    <documentation> Quantity Ordered</documentation>
    </annotation>
    </element>
    </sequence>
    </complexType>