Webmethods.io B2B Integration with Cloud container
Tags: integration, b2b, cloud, tutorial
Published: 2021-10-26 12:16:09

---
title: Webmethods.io B2B Integration with Cloud container
published: true
date: 2021-09-28 09:35:32 UTC
tags: #integration, #b2b, #cloud, #tutorial
canonical_url: https://tech.forums.softwareag.com/t/webmethods-io-b2b-integration-with-cloud-container/244647
---

### Introduction

This article explains about how [webmethods.io](http://webmethods.io) B2B can be integrated with [webmethods.io](http://webmethods.io) cloud container

### Audience

It is assumed that readers of this article know

* How to setup B2B enterprise profile and partner on [webmethods.io](http://webmethods.io) B2B platform.  
* How to create solutions in cloud container  
* How to create service and deploy it on cloud container solutions.

### Pre-Requisites

* Set up B2B enterprise profile, partner profile, Business Document.  
* Create solution in cloud container.  
Link: [Cloud Container tech Articles](https://tech.forums.softwareag.com/t/webmethods-cloud-container-not-just-lift-and-shift-freedom-to-lift-think-shift-lift-and-re-shape/237466)

### Topics Covered

* Configure cloud container credentials in [webmethods.io](http://webmethods.io) B2B  
* Overview of service to be deployed on Cloud container  
* Deploy the service to cloud container  
* Configure the Inbound processing rule action  
* End to End working flow

### Use Case:

* In our case we will be submit the 850 Purchase order request to [webmethods.io](http://webmethods.io) B2B as inbound transaction.  
* Processing rule will invoke to process the request.  
* In processing rule, under action tab we have configured the cloud container service.  
* Custom service is developed and deployed on cloud container.  
* Same cloud container service is configured under processing rule in [webmethods.io](http://webmethods.io) B2B.  
* Once the request is received at cloud container from b2B, content can be extracted from the BizDoc document for further processing.

### Configure cloud container credentials

* Navigate to [webmethods.io](http://webmethods.io) B2B settings page.  
* Under section tab select Extensions tab  
* Provide the credentials to connect cloud container instance.

![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/3/b/3b9228643bf656e5f874a2f0ac90b2659255c57c.png)

### Overview of service to be deployed on Cloud container

* Connect to your on prem Integration server designer  
* Created a package named as “CloudIntegrator”  
 ![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/a/d/ad9c55bfdccae937fb6843445fe6424c56457ceb.png)

* Developed a flowService “RcvBizDocFromB2B” responsible for receiving the transaction from B2B  
 ![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/a/f/af5267a5f7ac1530753f172c8f3593efdc0b2a50.png)

* As B2B sends BizDoc message, therefore we need to configure the input parameters on the RcvBizDocFromB2B flowService.

* Set below Input parameters  
a. wm.tn.rec:BizDocEnvelope  
b. wm.tn.rec:ProfileSummary  
c. wm.tn.rec:ProfileSummary

* To select the above docs in the input provide  
“wm.tn.rec: ReliableProcessingService” under specification tab and click enter.

![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/e/d/ed6c1c1048f6f052fa557c1141da0c17cefc84f8.png)

Note: To have above documents as reference in the flow service WmTN package should be installed.

### Deploy the service to cloud container

* Save the flow service  
* Deploy the package using “Deploy to Cloud” option.

![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/d/3/d3514a4bbb478d3978adac36a181025e0367330a.png)

Note: Refer below link for detail steps to add the cloud container instance and deploy the solution to the cloud container  
Document Link: [webMethods Cloud Container-Deploying IS Packages to Integration Server](https://tech.forums.softwareag.com/t/webmethods-cloud-container-deploying-is-packages-to-integration-server/237440)

Video Link: [Deploying on-premise integrations to webMethods Cloud Container](https://tech.forums.softwareag.com/t/deploying-on-premise-integrations-to-webmethods-cloud-container/236028)

### Configure the Processing rule in B2B

* Navigate to processing rule “ABC\_Corp\_To\_ShippingEnterprise\_AS2\_In”.  
* Above rule mentioned is inbound rule with below details  
  * Sender: ABC\_Corp  
  * Receiver: Shipping Enterprise  
  * Protocol: AS2  
  * Processing rule: IN (for inbound request)

* Navigate to Action tab under selected processing rule.  
* Select the call an integration check box  
* Select the webmethods cloud container from drop down menu.  
* Select the below configuration  
1. solution name: DigitalSolution  
2. Node: IS  
3. Package : CloudIntegrator  
4. Service: RcvBizDocFromB2B  
5. Execution mode: Reliable

![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/3/b/3bd73080bffccff7ed3a161d845dcb5805b3605d.png)

* Save the changes

### End to End Testing

### Submit and verify request from [webmethods.io](http://webmethods.io) B2B

* Submit the 850-purchase order transaction using from B2B document submission tab.  
* Verify the transaction is submitted successfully and correct processing rule has been invoked from Transaction Monitoring page.  
 ![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/b/d/bd53167752c622b8c770853f4f6651e9f37794b7.png)

### Verify at [webmethods.io](http://webmethods.io) Cloud container

* Navigate to [webmethods.io](http://webmethods.io) cloud container.  
* Open the solution DigitalSolution  
* On the left-hand side click on Manage  
 ![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/f/0/f0e9d68b3503af345c036bfdb89862fed5c8e92d.png)

* Under manage tab click on administration.  
* Select the server logs from logs section on the left-hand side.

![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/f/0/f0bfeb826ebc989fe028d31a4aebbb6d4703cf5c.png)

* Under the logs we can see the BizDoc and 850 purchase order logged which was sent from [webmethods.io](http://webmethods.io) B2B

![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/1/e/1e027500b085e7615c798f267682f772d0691f17.png)

![image](https://aws1.discourse-cdn.com/techcommunity/original/3X/8/0/80a958286032b347c17f1b9ab141d46e85759147.png)

Note: Attached the on premise package “CloudIntegrator” used for this demo. [CloudIntegrator.zip](https://tech.forums.softwareag.com/uploads/short-url/668KPddohR4PF1UcgbEfcSmP0GP.zip) (7.6 KB)

[Read full topic](https://tech.forums.softwareag.com/t/webmethods-io-b2b-integration-with-cloud-container/244647)