You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: anypoint-b2b/as2-connector-2.0.0-rc.adoc
+37-36
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,5 @@
1
1
= AS2 Connector
2
+
:keywords: b2b, as2, connector
2
3
3
4
The AS2 Connector allows you to send and receive data from AS2 certified servers.
4
5
@@ -14,7 +15,7 @@ After reading this page you should be able to accomplish the following:
14
15
15
16
This document assumes that you are familiar with Mule, the http://www.mulesoft.org/documentation/display/current/Anypoint+Studio+Essentials[Anypoint Studio interface], and http://www.mulesoft.org/documentation/display/current/Global+Elements[Global Elements]. Further, it is assumed that you are familiar with AS2 endpoints and have received endpoint configuration requirements.
16
17
17
-
=== Namespace & Schema Location
18
+
=== Namespace and Schema Location
18
19
19
20
The XML namespace and schema location are as follows:
20
21
@@ -87,74 +88,74 @@ The following example requires basic familiarity with AS2, Anypoint Studio, and
87
88
88
89
Create a new Mule Project with Mule Server 3.6.0 EE as runtime:
The connector requires an AS2 Connector Configuration. To create a connector configuration, you must first create a global HTTP endpoint and then bind the connector configuration to the endpoint. The connector’s operations leverage the HTTP endpoint to receive and send AS2 messages.
107
108
108
109
Click on the Global Elements tab and create an HTTP endpoint:
Give the HTTP endpoint a more descriptive name like “receive-as2-http-endpoint”. Click on the Connector Configuration add symbol to bring up the HTTP connector configuration dialog:
In this step, you will make an AS2 connector configuration and bind it to the global HTTP endpoint. Create an AS2 Connector Configuration from the Global Elements view:
Type “receive-as2-http-endpoint” in the attribute Global HTTP Endpoint Reference to bind the AS2 connector to the previously created global HTTP endpoint. Press OK.
Back to the Message Flow view, on the AS2 message source, select “AS2” from the Connector Configuration drop-down list and select “Receive” from the Operation drop-down list:
* The connector’s Key Store Path attribute must be configured in either of the following scenarios:
155
156
156
-
. Connector receives a signed request +
157
-
. Connector receives an encrypted request +
157
+
. Connector receives a signed request
158
+
. Connector receives an encrypted request
158
159
. Sender requests a signed receipt
159
160
160
161
For scenario 1, the key store has to contain the certificate used by the AS2 connector to verify the request’s authenticity. +
@@ -169,41 +170,41 @@ For the sake of keeping the example simple, no key store is set so no security i
169
170
170
171
Add a File outbound endpoint to save the sender’s AS2 message content. Drag a File outbound endpoint from the palette next to the AS2 Connector. Set the Path attribute to “inbox” and Output Pattern to “data.txt”:
In this step, you will make an AS2 connector configuration and bind it to the global HTTP endpoint. From the Global Elements view, create an AS2 Connector Configuration:
241
+
In this step, you make an AS2 connector configuration and bind it to the global HTTP connector. From the Global Elements view, create an AS2 Connector Configuration:
Type “send-as2-http-endpoint” in the attribute Global HTTP Endpoint Reference to bind the AS2 connector to the previously created global HTTP endpoint. Press OK.
247
+
Type “send-as2-http-endpoint” in the attribute Global HTTP Endpoint Reference to bind the AS2 connector to the previously created global HTTP connector. Press OK.
Back to the Message Flow view, on the AS2 processor, select “AS2” from the Connector Configuration drop-down list and select “Send” from the Operation drop-down list:
@@ -283,15 +284,15 @@ For the sake of keeping the example simple, no key store is set so no security i
283
284
284
285
Viewing the receipt returned by the AS2 receiver is optional but useful for testing. Append to the flow a Byte Array to String transformer followed by a Logger processor to print the receipt's content to console.
Drop a file in the "outbox" directory to send it to the receiver over AS2. If you have followed step 14, you should see the receiver's receipt in the console.
0 commit comments