If you use the AS2 protocol to send EDI messages to an EDI partner, use the AS2 web app to manage the interaction with the EDI partner.
The AS2 web app runs in the Azure cloud.
When you run a web service action using the AS2 protocol, an EDI message is sent to the AS2 web app.
The web service action calls the send method of the AS2 web app to send the data to the EDI partner.
The AS2 web app send method:
The EDI message body, as sent to the AS2 web app, for example, looks like:
{
"encoding": "Binary",
"documentContent":"PHJvb3Q+dGVzdCAyPC9yb290Pg==",
"filename": "test.xml",
"documentContentFormat": "Base64String"
}
Explanation of the body elements:
Body element | Required | Description | Default value |
---|---|---|---|
encoding | Yes | The encoding is parsed into Mimekit enum ContentEncoding. | Binary |
documentContent | Yes | The content of the message. | - |
filename | Yes | The filename is forwarded to the EDI partner. | - |
documentContentFormat | No | The content format is set by an optional attribute on the web service action. If the attribute exists and no value is set, the default value PlainText is applied. If the attribute value is set to Base64String, the content is first decoded, and then processed. | PlainText |
Related to | Notes |
---|---|
Process EDI messages using AS2 - Outbound |
  |