Discuss this help topic in SecureBlackbox Forum

EDI: Request a receipt for the message

To request the recipient to send a receipt, the following steps have to be performed before saving the composed message:

  1. Set ReceiptRequest.Enabled property to true
  2. Set optional request-related properties

In AS2 protocol receipts can be both synchronous and asynchronous. To request a synchronous receipt in AS2 message you set TElAS2Message.ReceiptRequest.AsyncReceipt property to 'false'. To request an asynchronous receipt in AS2 message you set TElAS2Message.ReceiptRequest.AsyncReceipt property to 'true' and also specify TElAS2Message.ReceiptRequest.URL property to the address, to which the receipt should be sent.

In AS3 protocol all receipts are asynchronous.

Examples:

C#:


// create an AS2 message
TElAS2Message message = new TElAS2Message();

// set other properties
...

// request a receipt
message.ReceiptRequest.Enabled = true;

// request prefered digest algorithm
message.ReceiptRequest.DigestAlgorithm = TSBASSignatureDigestAlgorithm.sdaSHA256;

// request the receipt to be signed
message.ReceiptRequest.Signed = true;

// request the receipt to be sent later to the specified URL
message.ReceiptRequest.AsyncReceipt = true;
message.ReceiptRequest.URL = "https://myediserver.com/receipts";

// load EDI data from the file and save
// the AS2 message to another file
message.Save("mydata.edi", "mymsg.as2m");

How To articles about AS2 and AS3 messages

Discuss this help topic in SecureBlackbox Forum