IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.



#Automation

 View Only

Tech Bytes IWHI: AS2 QuickStart for B2B 

Tue August 19, 2025 08:45 PM

Introduction

This is a short tutorial to help administrators and integrators see for themselves just how easy it is setting up and leveraging IBM WebMethods Hybrid Integration (IWHI) B2B for AS2 document exchange. While WebMethods B2B supports much more advanced use-cases, such as encryption, signing, compression and Trading Partner Agreements, the goal here is to highlight the simplicity and intuitiveness of IWHI B2B, enabling you to quickly onboard trading partners and facilitate seamless business document exchanges.

Prerequisite

IBM WebMethods Hybrid Integration tenant with B2B enabled.

Audience

This tutorial presumes basic familiarity with AS2 and EDI, but new to WebMethods B2B.

Laying the groundwork

Before you can begin exchanging documents, you’ll need to first define:
  • Partner profiles: Who will be exchanging documents.
  • Channels: How the documents will be sent or received.
  • Business documents: What format (EDI, XML, flat file) the data will be in and how to recognize and parse specific transaction types (i.e.: EDIFACT X12 4010 850).
  • Processing rules: How to route inbound documents for processing and outbound ones for delivery, based on criteria such as document, sender, receiver, error status, etc.
Let's get started.

Define your Enterprise profile

Click webMethods B2B Integration from the side navigation to access the B2B home page. The first time you access B2B, you will need to set up your enterprise profile, which represents your business. A name and at least one identity are required. Here we have created the Acme Corporation and assigned its DUNS number, a commonly used business identifier that maps to type 01 in the X12 ISA segment.
If you do not see the Enterprise wizard, then the enterprise profile already exists, and you can proceed to the next step.
Once your enterprise profile is created, you will need to activate it. You can also edit it by, for example, adding the AS2 ID, contact details, certificates, and even custom attributes.

Click the + icon to add a new attribute or the > to view /edit the details. In addition to the built-in identity types, you can also define your own (such as Acme Customer ID) to easily route transactions between B2B and backend integrations.
Note: When assigning multiple identities to a profile, you can only assign one ID of any given type, and all ID/type combinations must be unique. In other words, a profile cannot have more than one DUNS identity, and no two profiles can have the same DUNS number.

Create Partner profiles

Create a partner profile for each business entity you will be exchanging documents with. From the side navigation menu, click Connections > Partner profiles. Click the + (Add partner) icon and select “Add using form”. In the Add partner dialog, add the partner details, and click Save. Remember, each identity must be a unique combination of type and value. For a list of ID type mappings for EDI documents, see Reference Information on ID type Mapping

Here we are adding our partner, Coyote Enterprises, along with their DUNS number and AS2 ID.

Add communication credentials

Communication credentials are the user accounts your partners will use to authenticate when sending documents. A partner must have at least one associated communication credential to send a document to the enterprise. You can also configure certificates for authentication, but for simplicity we will use basic authentication for this tutorial.

First, create the credential.

Then, activate it.

After creating and activating the credential, associate it with your partner profile.

Note: The communication credentials in webMethods B2B Integration must not match any existing tenant usernames in your IBM® webMethods Hybrid Integration account to avoid access-denied errors.

Define channels

Channels represent communication links for transmitting documents between your Enterprise and your business partners. Channels can be partner-specific or shared.
Here, we are creating a shared AS2-IN channel called receiveAS2.

After clicking Next, you can configure whether you want to receive signed or encrypted payloads. On the Advanced tab, you can define channel-specific properties for custom processing scenarios.
After clicking Finish, the Endpoint URL will be displayed. This URL will be used by your partner to send data to this channel. 
Once the inbound channel is created, edit the partner profile to associate the channel with your partner.
In the real world, we would also create an outbound companion channel to send documents to our partner.

Define the business documents to be exchanged

IWHI B2B comes EDI-ready, with full support for a broad array of EDI standards, as well as support for other popular B2B standards like cXML, ebMS, and RNIF among others.
For this tutorial, we will be using the EDIFACT X12 4010 standard and exchanging transaction types 850 (purchase order) and 997 (functional acknowledgement).
To define them, from the side navigation menu, click Assets > Business documents. Click the + (Add document) icon and select EDI. For each document, choose the standard, version, and transaction, then click Save. 
On the document details screen, you can see the structure of the document, define custom attributes to extract, and set the options for routing, validating, and saving transactions. Make sure to activate the document.
Note: The defined business documents automatically synch with your Integration instance for seamless interoperability.

Create processing rules

Processing rules define how documents should be routed. B2B comes with an array of preconfigured processing rules for handling EDIINT messages, MDNs, functional acknowledgements, etc. There is also a Default Rule to catch any unrecognized documents and save them. Note that processing rules are evaluated in order from the top, so rules with the most restrictive selection criteria should come before more generic rules.
For this example, I have previously created an Integration service that receives an X12 850 and simply logs the payload.
To create the rule, go to Assets > Processing rules, click the + icon, and select “Add first”. Name the rule, optionally give it a description, and set the basic selection criteria. In this case, we will leave the Sender as any and set the Receiver to our Enterprise. Under Document, tick Selected, and check X12 4010 850.
Hint: Start typing in the Search box to rapidly find documents.
Under Actions, check the “Call an integration” box and set the callout option to “IBM webMethods integration”. Here, I have selected the B2BQuickstart project and processInbound850 flow service to execute as my user in “reliable” mode, which creates a task to manage retries. Once complete, the processing rule should look similar to the below.

Test and monitor transactions

Now, we are ready to send an EDI transaction to B2B over AS2. For testing, I have created a service called sendAS2. To run it, enter the URL, username, password and EDI payload.

A successful run should return the synchronous MDN.
Finally, the FA could not be delivered, as the partner does not yet have an outbound channel configured.
Naturally, the next step would be to configure the outbound channel for your partner.

Conclusion

So, now you see just how quick and easy it is to configure and use IWHI B2B for AS2 document exchange. The key message remains: IWHI B2B simplifies onboarding trading partners and facilitates effortless document exchanges, allowing you to focus on maximizing business value.
Remember, IWHI B2B is designed with user experience in mind, ensuring that even complex B2B integration tasks become straightforward and manageable. Experience it for yourself with a 30-day free trial. Don't hesitate to explore the IBM Documentation and Getting Started guide for further insights and best practices.
Until next time, happy integrating!

#IBM #WebMethods #HybridIntegration #B2B #AS2 #IntegrationMadeEasy

Statistics
0 Favorited
52 Views
4 Files
0 Shares
17 Downloads
Attachment(s)
zip file
Test integration to send AS2 message   9 KB   1 version
Uploaded - Tue August 19, 2025
zip file
Test integration to receive EDI 850   9 KB   1 version
Uploaded - Tue August 19, 2025
txt file
Sample 850 #1   1 KB   1 version
Uploaded - Tue August 19, 2025
txt file
Sample 850 #2   750 B   1 version
Uploaded - Tue August 19, 2025