Net::AS2::MDN - AS2 Message Deposition Notification
### Sending Message and got a Sync MDN my $mdn = $as2->send($body, Type => 'application/xml', MessageId => 'my-message-id-12345@localhost') if (!$mdn->is_success) { print STDERR $mdn->description; }
This is a class for creating Message Deposition Notifications (MDN) for use in handling AS2 (RFC 4130) communication. This described in RFC 3798.
Create an Net::AS2::MDN indicating processed with transaction information provided by Net::AS2::Message. Optionally with a human readable text.
Net::AS2::MDN
Net::AS2::Message
Create an Net::AS2::MDN indicating processed with warnings with transaction information provided by Net::AS2::Message. Optionally with a human readable text.
Status text is required and will goes to the Disposition line. It is limited to printable ASCII.
Disposition
Create an Net::AS2::MDN indicating failed/failure status with transaction information provided by Net::AS2::Message. Optionally with a human readable text.
Create an Net::AS2::MDN indicating processed/error status with transaction information provided by Net::AS2::Message. Optionally with a human readable text.
Create a corresponding Net::AS2::MDN for unsuccessful Net::AS2::Message notice generated while receiving and decoding. Message's error text will be used.
Parses the given content as an MDN.
Create an 'error' Net::AS2::MDN with the status text of $reason.
$reason
Create an 'unparsable' Net::AS2::MDN with the status text of $reason.
Verify the MDN MIC value with a pre-calculated one to make sure the receiving party got what we sent.
The MDN will be marked is_error if the MICs do not match.
is_error
$mdn->match_mic($mic, 'sha1'); if ($mdn->is_success) { # still success after comparing mic }
Returns 1 if MICs do match, 0 otherwise.
Indicating a successfully processed status. (This returns true even with warning was presented)
Indicating the message was processed with warning.
Indicating a failed/failure status.
Indicating a processed/error status
Indicating the MDN was unparsable
The machine readable text follows the Disposition status
The URL where the MDN was requested to sent to
Returns true if the MDN was requested to be signed
Returns the AS2 name of the final recipient field of the MDN
Returns the Original-Message-Id field of the MDN
Returns a concatenated text message of the MDN status, machine readable text and human readable text.
Returns a multipart/report MIME::Entity representation of the MDN
MIME::Entity
Net::AS2, MIME::Entity
RFC 3798
The Message Deposition Notification RFC 3798 is now obsolete. It has been superceeded by RFC 8098. These changes have not been implemented.
To install Net::AS2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::AS2
CPAN shell
perl -MCPAN -e shell install Net::AS2
For more information on module installation, please visit the detailed CPAN module installation guide.