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
Name | Type | Description |
---|---|---|
Message | IAS2Message | The message to add a payload to. |
ContentType | String | Content type associated with the payload. |
FileName | String | Name of the payload file. |
FileCreated | DateTime | Date and time the payload file was created. |
FileModified | DateTime | Date and time the payload file was created. |
DataEncoding | AS2DataTransferEncoding | Specifies how to encode the data being transferred. |
DataStream | Stream | Open stream containing payload data. |
CloseStreams | Boolean | If 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.