...
When an AS4Message
is received by the agent it goes through a series of steps:
- Determine the the Receiving Processing Mode that that must be used to correctly process the incoming message.Each
...
- configured Receiving Processing Mode
...
- is inspected and assigned a score.
...
-
The Receiving Processing Mode
...
- that best matches the
...
- received
AS4Message
...
- will be used to further process
...
- the
AS4Message
.IMPORTANT: If none of the configured Receiving Processing Modes sufficiently match the received
AS4Message
, or if it is impossible to select just one matching Receiving Processing Mode, then the Agent will stop processing the receivedAS4Message
right here since it is not possible to correctly process the message.
...
When a Receiving Processing Mode is selected, the received message will be validated. The validation consists of the following rules:
- The SOAP body of the
AS4Message
should be empty - Each
ParttInfo
element should have an uniquehref
reference to a embedded payload (href
that starts with'cid:'
) - Each included
Attachment
should reference aPartInfo
- The SOAP body of the
After the validation, the included
Attachment
's (if any) will be decrypted using the information found in the assigned Receiving Processing Mode (decryption algorithm that must be used, the certificate that must be used to decrypt, ...). Decryption only takes place if this is allowed by the pmode: this means that theDecryption
option must be set toRequired
orAllowed
.
...
When the
Decryption
option is set toIgnored
, the received message will not be decrypted. WhenDecryption
is set toNotAllowed
the Receive Agent will respond with anError
signalmessage if the message is encrypted.After the message is possibly decrypted, the Agent verifies if the signature (if present) is valid.
This is only done when the
Signature
option in the pmode is set toRequired
orAllowed
.
...
In the case of
Ignored
orNotAllowed
the verification will not take place or isn't allowed at all.Note: for incoming Non-Repudiation
Receipt
's, the Receiving Processing Mode has an option (VerifyNRR
) to also verify the included references.After the signature has been verified, the included
Attachments
's (if any) will be decompressed.Note: if the incoming message must be forwarded, the attachments will not be decompressed.
Finally, when the message has been successfully processed, the receive agent will create a
Receipt
signalmessage. ThisReceipt
will be created conforming the settings that can be found in the Receiving Processing mode. (ReceiptHandling.UseNRRFormat
to specify if NRI information must be included and theSigning.IsEnabled
setting in the responding pmode (which is defined by theReplyHandling.SendingPMode
element)). ThisReceipt
will then be sent to the sender.
...