ValidateAndParsePayload
Task to validate an incoming AS2 message, extracts the EDI payload, and generates an MDN receipt.
Last updated
Was this helpful?
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
Source code: https://github.com/FrendsPlatform/Frends.As2/tree/main/Frends.As2.ValidateAndParsePayload
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")
RequireSigned : Boolean
Forces signature validation when enabled.
Default: False
Example: true
PartnerCertificatePath : String
Path to partner's public certificate (.cer) file.
Default: -
Example: C:\Certs\partner.cer
RequireEncrypted : Boolean
Forces decryption when enabled.
Default: False
Example: true
OwnCertificatePath : String
Path to your own certificate file in .pfx format.
Default: -
Example: C:\Certs\mycompany.pfx
🗝OwnCertificatePassword : String
Password for your private key certificate.
Default: -
Example: mySecurePassword123
ThrowErrorOnFailure : Boolean
Whether to throw an error on failure.
Default: True
Example: false
ErrorMessageOnFailure : String
Overrides the error message on failure.
Default: -
Example: Custom error message
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": "..." }
Changelog for Task Frends.As2.ValidateAndParsePayload.
Initial implementation
Last updated
Was this helpful?
Was this helpful?

