For the complete documentation index, see llms.txt. This page is also available as Markdown.

ValidateAndParsePayload

Task to validate an incoming AS2 message, extracts the EDI payload, and generates an MDN receipt.

Task version: 1.0.0

Required Frends version: 5.7+

Required .NET version: 8.0

Compatible Agents: Crossplatform

Task Parameters

Name
Description

Headers : Dictionary<String, String>

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

Default: - Example: { "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"" }

Body : Byte[]

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

Default: - Example: Encoding.UTF8.GetBytes("This is a test AS2 message payload")

Task Result

Name
Description

Success : Boolean

Indicates if the task completed successfully. Example: true

Error : Error

Error that occurred during task execution. Example: object { string Message, object { Exception Exception } AdditionalInfo }

Payload : String

Decrypted/decompressed business data (EDI/XML/JSON). Example: Test message

As2From : String

AS2 sender identifier. Example: PartnerAS2

As2To : String

AS2 receiver identifier. Example: MyCompanyAS2

MessageId : String

ID of the received message. Example: "123456789@example.com"

MdnReceipt : MdnData

MDN receipt generated by the AS2Receiver. To be used later in CreateMdnResponse. Example: object { "Headers": "...", "Message": "...", "Content": "..." }

Task Changelog

Changelog for Task Frends.As2.ValidateAndParsePayload.

[1.0.0] - 2025-09-11

Changed

  • Initial implementation

Last updated

Was this helpful?