AS2

Frends.As2.ValidateAndParsePayload / 1.1.0

Summary

Takes the headers and body of an inbound AS2 request, checks signature and encryption against the partner's certificate, extracts the EDI payload and builds the MDN receipt to send back.

Typical use — behind a Frends API endpoint that receives partner traffic, so the Process can answer with a proper receipt

Details

Frends version
5.7 and newer
Agent
Crossplatform
Target framework
net8.0

Essential parameters.

Name Type Default Example Description
Headers Dictionary<String, String> { "AS2-From": "TestSender", "AS2-To": "TestReceiver", "Message-ID": "<12345@example.com>", "Subject": "Test AS2 Message", "MIME-Version": "1.0", "Content-Type": "application/pkcs7-mime; smime-type=enveloped-data; name=\"smime.p7m\"" }

HTTP headers from the AS2 request containing AS2-From, AS2-To, Message-ID and other AS2 metadata.

Body Byte[] Encoding.UTF8.GetBytes("This is a test AS2 message payload")

Raw body content as byte array containing the AS2 message payload (encrypted/signed data).

An unhandled error has occurred. Reload 🗙