SEND

The SEND command is used to send an AS2 transaction.

The following keywords may be supplied on the SEND command or as an entry in a keyword/value list argument.

Syntax:

Command

Keyword

Value

Developer notes for Command/Keyword/Value

SEND

RECIPIENT

value

Mandatory. The identity that that will receive the transaction. This value is used in resource file lookups.
Value is made up of 2 components separated by a colon, a name component and an optional private keystore password component.
Example: ACME:mypassword

FILE

value

Mandatory. Filename of content.

NAME

value

Optional. Override name of filename used in message.

CONTENT

value

Mandatory. Content mime-type.

*XML

application/xml.

*X12

application/edi-x12.

*EDIFACT

application/edifact.

MESSAGEID

value

Optional. Complete transaction message id. The Message-Id is normally generated.

SUBJECT

value

Optional. Transaction subject.

RECEIPTTO

value

Optional. Require receipt.

*NONE

Do not send Disposition-Notification-To.

RECEIPTSIGNED

*YES

Optional. Require signed receipt.

*NO

 

DELIVERY

value

Optional. URL for asynchronous receipt delivery.

*NONE

Do not send Receipt-Delivery-Option.

SIGNED

*YES

Optional. Signed Transaction.

*NO

Default.

ENCRYPTED

*YES

Optional. Encrypted Transaction.

*NO

Default.

COMPRESSED

*YES

Optional. Compressed Content.

*NO

Default.

USER

value

Optional. Basic authentication user.

PASSWORD

value

Optional. Basic authentication password.

WAIT

*YES

Optional. Default is 0.
Infinite wait for HTTP response.

*NO

Do not wait for HTTP response.

value

Wait read time in milliseconds.

TIMEOUT

value

Optional. Default is 0 which means disabled.
Host connection timeout in milliseconds.

PARTNER

value

Optional. Authentication partner.

 

 

The RECIPIENT keyword value is used to obtain the signing key file, password, signing certificate, encryption certificates and verify authentication of signed receipt certificate using a selection hierarchy of entries from the properties file.

 keystore.{recipient}= pki/filename

 keystore = pki/filename

 keystore.password.{recipient} = password

 keystore.password = password

 certificate.{recipient} = pki/filename

 certificate = pki/filename

 encryption.certificates.{recipient} = pki/filename, pki/filename, pki/filename

 authentication.certificate.{partner} = pki/filename

 url.{recipient} = http://company.com/as2server

 as2-to.{recipient} = companyto

 as2-from.{recipient} = companyfrom

 as2-from = companyfrom

 from.{recipient} = from

 from = from

 subject.{recipient} = subject

 subject = subject

 receipt.to.{recipient} = *none | email address (Disposition-Notification-To)

 receipt.to = *none | email address (Disposition-Notification-To)

 receipt.signed.{recipient} = *yes | *no (Disposition-Notification-Options)

 receipt.signed = *yes | *no (Disposition-Notification-Options)

 receipt.delivery.{recipient} = *none | url (Receipt-Delivery-Option)

 receipt.delivery = *none | url (Receipt-Delivery-Option)

 messageid.prefix.{recipient} = company identifier

 messageid.prefix. = company identifier

 signed.algorithm.{recipient} = *MD5 | *SHA1 | *SHA256 | *SHA384 | *SHA512

 signed.algorithm = *MD5 | *SHA1 | *SHA256 | *SHA384 | *SHA512

 encryption.algorithm.{recipient} = *DES3 | *AES128 | *AES192 | *AES256

 encryption.algorithm = *DES3 | *AES128 | *AES192 | *AES256