Defining an XML document from a sample XML document

This use case explains how to define an XML document from a sample XML document.

Before you begin

Ensure that you have:

  • An existing project in IBM® webMethods Integration.
  • XML document structure (document type, schema, and so on) that is defined in the system.

About this task

The use case starts with a sample XML document based on which you want to define an XML document and ends when you successfully create the XML document.

In this example, you define an XML document PurchaseOrder that is project-aware of the project B2B_Test in webMethods Integration and uses a sample XML document PORequest.xml.

Procedure

  1. In webMethods B2B from the side navigation menu, click Assets > Business document.
  2. Click Add document icon and select XML.
  3. Provide the following details:
    • Name, type PurchaseOrder, a name for the XML document.
    • Description is optional. Provide a brief description for the XML document.
  4. Select the project B2B_Test and click Next.
  5. Select No to create an XML document without referring to an existing document type from the selected project.
  6. Select a Sample XML document.
  7. Browse the sample XML document in the space provided and click Save.
    Note: The sample XML file size must be less than or equal to 1 MB.

Results

The XML document is created.

View this XML document in the list of available documents on the Business documents page.

What to do next

  • After you add the XML document, manually extract the senderID and receiverIDs so that webMethods B2B can recognize the documents.
    Important: After adding XML documents using DTD or XSD or a sample XML, you must explicitly add the processVersion attribute in the pipeline matching step under Identifiers. Only then, webMethods B2B recognizes RosettaNet messages.
  • Activate the XML document and test it.

With this use case, the respective document type is also created on IBM webMethods Integration.

Alternate flow
  • To update the XML document, click Edit icon on the document details page. You can update the name, description, project, and document type.
  • Navigate to the respective sections to edit the Identifiers, Attributes, Namespaces, and Options.