Skip to main content
Version: 4.2.5

Add Payload To AS2 Message

Description

Adds a payload to an AS2 message using a stream that contains the payload. Optionally closes the stream after the payload has been added.

Assembly: iCore.Workflow.Activities.AS2
Category: AS2

Arguments

NameTypeDescription
MessageIAS2MessageThe message to add a payload to.
ContentTypeStringContent type associated with the payload.
FileNameStringName of the payload file.
FileCreatedDateTimeDate and time the payload file was created.
FileModifiedDateTimeDate and time the payload file was created.
DataEncodingAS2DataTransferEncodingSpecifies how to encode the data being transferred.
DataStreamStreamOpen stream containing payload data.
CloseStreamsBooleanIf set to True, the input payload stream is closed after it has been added to the AS2 message.
note

Sending and receiving messages with more than one payload requires a system implementation that supports EDIINT-Feature Multiple-Attachments that is part of AS2-version 1.2. All messages sent by the system should have AS2Version set to 1.2 and AS2EdiintFeatures to Multiple-Attachments to indicate that the system supports the Multiple-Attachments feature.