Generating TLOs for request processing: step-by-step

To build the actual TLO, perform the following steps:

  1. Download the QDoc schemas you need from a QAD website or obtain QDoc schema files from the QXtend product by copying all .xsd files from <QXtend installation directory>/webapps/qxtendserver/WEB-INF/schemas/eB2 to ProductDir/dependencies/QDocSchemas
  2. Use the XML ODA to generate the definition of the QDoc body from the QDoc schema; for example for the maintainSupplier QDoc use the maintainSupplier.xsd as input for the ODA; then save the definition under the same name (maintainSupplier).
  3. Open BIA_PlaceHolderBOQDoc in Business Object Designer.
    Note:
    You can find this and other BO templates in the installed directory ProductDir/connectors/QAD/samples.
  4. Change the Body type to the actual BO definition for the body that was generated previously; maintainSupplier in the example.
  5. Save the new definition as <qdoc_name>RequestQDoc where <qdoc_name> is the name of the QDoc; in the example above, the name of the new BO would be maintainSupplierRequestQDoc.
  6. Open the ProtocolConfigMO of the request object and specify the URL for the QXtend web service as the value of the Destination attribute. Figure 12 shows the Destination attribute of the ProtocolConfigMO for the Request BO.

    Figure 12. ProtocolConfigMO Destination attribute

  7. Use the XML ODA to generate the definition of the response QDoc body from the QDoc schema; for example for the maintainSupplierResponse QDoc use the maintainSupplierResponse.xsd as input for the ODA. Then save the definition under the same name (maintainSupplierResponse).
  8. Load the BIA_PlaceHolderBOResponseQDoc in Business Object Designer.
    Note:
    You can find this and other BO templates in the installed directory ProductDir/connectors/QAD/samples.
  9. Change the body type to the actual BO definition for the body that was generated previously, maintainSupplierResponse in the example.
  10. Save the new definition as <qdoc_name>ResponseQDoc where <qdoc_name> is the name of the QDoc; in the example above, the name of the new BO would be maintainSupplierResponseQDoc.
  11. Open BIA_TemplateTLO in Business Object Designer.
    Note:
    You can find this and other BO templates in the installed directory ProductDir/connectors/QAD/samples.
  12. Change the request type from BIA_PlaceHolderBOQDoc to the type you saved previously for the request BO; in the example, the name would be maintainSupplierRequestQDoc.
  13. Change the response type from BIA_PlaceHolderBOResponseQDoc to the type you saved previously for the response BO, in the example, the name would be maintainSupplierResponseQDoc.
  14. Save the new definition as <qdoc_name>QDoc_TLO where <qdoc_name> is the name of the QDoc; in the example, the name of the new TLO would be maintainSupplierQDoc_TLO.

Copyright IBM Corp. 1997, 2004