ValidateAndParsePayload
Task to validate an incoming AS4 message, extract the EDI payload, and generate a 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.As4/tree/main/Frends.As4.ValidateAndParsePayload
Task Parameters
Headers : Dictionary<String, String>
HTTP headers from the AS4 request containing SOAPAction, Content-Type and other AS4/ebMS metadata.
Default: -
Example: { "Content-Type": "multipart/related; boundary="MIME_boundary"; type="application/soap+xml"", "SOAPAction": """", "Content-Length": "12345" }
Body : Byte[]
Raw body content as byte array containing the AS4 (ebMS) message payload (signed/encrypted SOAP with attachments).
Default: -
Example: Encoding.UTF8.GetBytes("--MIME_boundary...")
RequireSigned : Boolean
Forces signature validation when enabled.
Default: False
Example: true
PartnerCertificatePath : String
Path to partner's public certificate (.cer/.pem) file used to validate the signature.
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 used for decryption/signature validation.
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: true
ErrorMessageOnFailure : String
Overrides the error message on failure.
Default: -
Example: Custom error message
Task Result
Success : Boolean
Indicates if the task completed successfully.
Example: true
Payloads : String[]
Decrypted/decompressed business data (EDI/XML/JSON) extracted from the first AS4 payload.
Example: ["This is a nice test message :)"]
As4From : String
AS4 sender party identifier.
Example: PartnerAS4
As4To : String
AS4 receiver party identifier.
Example: MyCompanyAS4
MessageId : String
ID of the received ebMS message.
Example: "123456789@example.com"
Receipt : ReceiptData
Receipt generated by the AS4Server. To be used later when sending the AS4 receipt response.
Example: object { "Content": "...", "RefToMessageId": "..." }
Receipt.Content : String
Raw receipt content (signed ebMS receipt SOAP message) returned by the AS4Server.
Example: "eb:SignalMessage...</eb:SignalMessage>"
Receipt.RefToMessageId : String
The MessageId of the original message this receipt refers to.
Example: "123456789@example.com"
Error : Error
Error that occurred during task execution.
Example: object { string Message, Exception AdditionalInfo }
Error.Message : String
Summary of the error.
Example: Unable to validate As4 message.
Error.AdditionalInfo : Exception
Additional information about the error.
Example: object { Exception AdditionalInfo }
Task Changelog
Changelog for Task Frends.As4.ValidateAndParsePayload.
[1.0.0] - 2026-08-20
Added
Initial implementation of the AS4 ValidateAndParsePayload task.
Validates an incoming AS4 (ebMS) message using the NSoftware IPWorks EDI AS4Server component.
Extracts the EDI payload, sender/receiver party identifiers and message id.
Optionally validates the signature (partner certificate) and decrypts the payload (own PFX certificate).
Returns the AS4 receipt content for use in a later receipt response.
Last updated
Was this helpful?

