Net::AS2::Message - AS2 incoming message
### Receiving Message and sending MDN my $message = $as2->decode_messages($headers, $post_body); if ($message->is_success) { print $message->content; }
Create a new AS2 message.
Create a new AS2 'error' message.
Create a new AS2 'failure' message.
Create an Net::AS2::Message from a serialized state data returned from serialized_state
Net::AS2::Message
Returns if the message was successfully parsed. content and mic would be available.
content
mic
Returns if the message was failed to parse. error_status_text and error_plain_text would be available.
error_status_text
error_plain_text
Returns if the message was parsed but failed in further processing, e.g. unsupported algorithm request . error_status_text and error_plain_text would be available.
Returns if the partner wants to have the MDN sent in ASYNC. async_url would be available.
async_url
Returns if the partner wants to have the MDN signed.
Returns the message id of this message. This could be undefined in some failure mode.
Returns the encoded content (binary) of the message. This is only defined when is_success is true.
is_success
Returns the SHA Digest MIC of the message. This is only defined when is_success is true.
Returns the SHA Algorithm used for the message. This is only defined when is_success is true.
Returns the content-disposition filename parameter of the message, if any.
This is only defined when is_success is true.
Dedicated short error text that should goes into machine readable report in the MDN.
Error text that goes into human readable report in the MDN.
Returns the url that partner wants us to send MDN to.
Returns the serialized state of this message.
This is usually used for passing Net::AS2::Message to another process for sending ASYNC MDN.
Check if Disposition Notification Options are supported.
Returns a string describing the unsupported option, if any.
Net::AS2
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.