...
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
...
received
...
AS4Message
right
...
here
...
since
...
it
...
is
...
not
...
possible
...
to
...
correctly
...
process
...
the
...
message.
...
In
...
this
...
case,
...
the
...
Receive
...
Agent
...
will
...
respond
...
with
...
an
...
Error
signalmessage.
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, ...).
...
In the case of Ignored
or NotAllowed
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.
...