Processing XML Document Types on B2B



This article explains about processing XML document Types received from a Partner over AS2 Channel on B2B.

Use Case

Below diagram represents the use case explained in this article

  • ABCCorporation is a partner of ACMEOrganization. 
  • ABCCorporation would like send Purchase Order to ACMEOrganization.
  • ACMEOrganization is using (B2B, Integration) for receiving and processing the Purchase Order.
  • ABCCorporation is configured as partner profile and ACMEOrganization is configured as Enterprise on B2B.
  • ABCCorporation is identified as ABC and ACMEOrganization is identified as ACME over AS2.
  • Below is the purchase order XML sample.

<?xml version="1.0"?>
<PurchaseOrder PurchaseOrderNumber="1" OrderDate="2020/04/22">
<Address Type="shipping">
<Name>ABC Corporation</Name>
<Street>ABC Street</Street>
<City>ABC City</City>
<State>ABC Street</State>
<Item PartNumber="1">

Implemenation Steps

Below diagram represents the configurations required for on B2B and Integration.

  • B2B is should be configured with enterprise with EDINT AS2 identifier as ACME and partner profile (ABC) should be created with EDINT AS2 identifier as ABC.
  • An inbound AS2 channel should be associated the Partner Profile to receive AS2 messages.
  • Partner user should be created and associated with the partner profile to send purchase order XML. 

Create Document from XML Sample on Integration

  • B2B can import the documents from Integration. Login to Integration -> Navigate to Project -> Configurations -> Pick Flow service -> Document Types -> Click on Add Document Type.

  • Create the document with the name purchaseOrder using the example from Use case section

Import the document to B2B

  • Login to Integration -> Navigate to Project -> Configurations -> Pick Flow service -> Document Types -> Click on Add Document Type.• Login to B2B - > Navigate to Documents -> Business Documents -> Add Document -> XML -> Provide Name as purchaseOrder -> Select Project Name where you created the XML document in the above step

  • Navigate to imported document and click on activate; configure the sender, receive identifiers. This can be configured from Attributes section of the document. Select the source field and add to identifiers. In this use case, Metadata fields in the sample represents the sender and receiver AS2 identifiers

Processing Rule for XML Document on B2B

  • Navigate to Processing Rules, create a Processing rule in the required order (Above/first/last) by selecting the existing processing rules. Processing rule criteria should be selected as
    • Sender -> Partner (ABCCorportation)
    • Receiver -> Enterprise
    • Document -> Purchase Order.

  • Select the action to send to a flowservice on Integration

  • Use “” from the attachments if you are using flow editor as an example integration on Integration
  • Use “” from the attachments if you are using new flow tooling.

Send XML Message over AS2 from Postman

  • Testing from Postman requires below features to be turned-off on the channel.

  • Use the postman collection - to post the XML over AS2 inbound channel. You need to configure the below on postman before posting.
    • tenantname - > B2B Tenant Name
    • channelid -> Channel Unique identifier
    • AS2-From -> ABC in this use case, AS2 identifier of Partner
    • AS2-To -> ACME in this use case, AS2 identifier of Enterprise
    • Message-Id -> Unique identifier for the message
    • Authorization -> Partner User (8.53 KB) (8.77 KB) (4.01 KB)

1 Like

Excellent step-by-step documentation. Got the output in one go…Thank you so much.
I am trying to move back to webMethods latest version. Had been working with other tools mainly GXS Application Integrator. If anyone can suggest a fast-track training on this or if anyone can help me with answers to my questions?
Please email me (proper Subject line please, so that I do not delete it by mistake :slight_smile: