The Net Tools Company - 800.225.4190
Search: 
Available in: EDI | EDI/AS2
AS1Sender Component [IP*Works! EDI V8]

Properties   Methods   Events   Configuration Settings  

The AS1Sender component implements an AS1 / EDI-INT client, capable of sending EDI messages over electronic mail.

NOTE: What follows is a very short description of the component interfaces. For more information, please consult the help files that come with the respective package.

Remarks

The AS1Sender component is used to send EDI or other messages over SMTP/S, using the AS1 protocol specified in RFC 3335. The component is also used to retrieve and verify server responses.

A typical AS1 transaction is as follows:

(1) The sender sends an EDI document to the receiver using SMTP or SMTPS. Typically the document will be signed and encrypted (particularly if SSL is not used). A signed receipt will also be requested.

(2) The receiver decrypts the message and verifies the signature.

(3) The receiver sends a signed receipt back to the client. The signature is over the hash of an MDN, which contains a hash of the received message.

When sending an EDI message, the client should specify, at a minimum, From and SendTo, MailServer, and EDIData and EDIType. The Send method should then be invoked.

To secure the EDI transmission, the message may be signed and/or encrypted by setting the appropriate certificates. By default, the component will apply message security if the appropriate certificates are specified. To sign the data set SigningCert. To encrypt, set RecipientCert.

SSL will also be used if SSLStartMode is set. In case your trading partner is using a self-signed certificate with their mail server it will be necessary to set SSLAcceptServerCert or trap the SSLServerAuthentication event to accept the certificate.

The message may also be compressed by setting CompressionFormat.

To request a receipt, or Message Disposition Notification (MDN), simply set the MDNTo property. The MDN will be returned in a separate email response. The MDNOptions property may be used to customize the request. By default, the component will request a signed MDN over an SHA1 hash.

Validating AS1 MDNs

AS1 MDNs are returned asynchronously in a separate email. Generally MDNs will not be returned immediately.

The component supports the use of the POP/S protocol for receiving e-mail. To receive an MDN, set the MailServer, User, and Password properties, and call Connect. At this point you may search your mailbox using the MailMessage properties; when you have found the appropriate message you should invoke ReadReceipt, which will set MDNReceipt. If the receipt is indeed an MDN it will also be parsed (although not verified) and MessageId will be set. If the message is not an MDN an exception will be thrown.

You should then use the values of From and MessageId to look up your trading partner's certificates, the MDNOptions requested, and the OriginalContentMIC calculated when you sent the original message (you must store this value externally to verify signed receipts). Finally, invoke VerifyReceipt.

Property List


The following is the full list of the properties of the component with short descriptions. Click on the links for further details.

AttachmentCountThe number of records in the Attachment arrays.
AttachmentContentTypeThe MIME content-type of this ediattachment.
AttachmentFileNameThe file name where the attachment data is stored.
AttachmentHeadersThe component fills out Headers each time any of the other properties for that ediattachment are changed.
CompressionFormatThe compression format (if any) to use.
ConnectedShows whether the component is connected.
EDIDataThis property contains the EDI payload of the transmission.
EDIEDITypeThe Content-Type of the EDI message.
EDIFileNameIn a sender, if FileName is specified, the file specified will be used for the EDI payload of the transmission.
EDINameName is the final name to be associated with the contents of either the Data or FileName properties.
EncryptingAlgorithmThe algorithm used to encrypt the EDI data.
FirewallAutoDetectThis property tells the component whether or not to automatically detect and use firewall system settings, if available.
FirewallTypeThis property determines the type of firewall to connect through.
FirewallHostThis property contains the name or IP address of firewall (optional).
FirewallPasswordThis property contains a password if authentication is to be used when connecting through the firewall.
FirewallPortThis property contains the TCP port for the firewall Host .
FirewallUserThis property contains a user name if authentication is to be used connecting through a firewall.
FromThe sender of the original message.
LocalHostThe name of the local host or user-assigned IP interface through which connections are initiated or accepted.
LogDirectoryThe path to a directory for logging.
LogFileThe log file written.
MailMessageCcThe value of the Cc header of the mail message.
MailMessageCountThe number of messages waiting in the mailbox.
MailMessageDateThe message date for the currently selected message.
MailMessageFromThe sender of the mail message.
MailMessageHeadersThe message headers for the currently selected message.
MailMessageNumberThe message number on the incoming mail server.
MailMessageReplyToThe value of the ReplyTo header of the mail message.
MailMessageSizeThe size of the mail message.
MailMessageSubjectThe subject of the mail message.
MailMessageTextThe text of the mail message.
MailMessageToThe recipient of the mail message.
MailMessageUIDThe unique id of the mail message.
MailServerThe address of your mail server.
MDNOptionsUsed to indicate the options requested for the MDN receipt.
MDNContentThis contains the entire content of the MDN Receipt.
MDNHeadersReceiptHeaders contains the AS2 headers of the MDN Receipt.
MDNMDNMDN will contain the entire machine readable text of the Message Disposition Notification in the receipt.
MDNMessageThe human-readable portion of the MDN receipt.
MDNMICValueThe Message Integrity Check(s) (one-way hash) of the original EDI message.
MDNSigningProtocolThis property contains the MIME type of the signature used, if any (i.
MDNToThe system to which an MDN should be directed.
MessageIdThe Id of the message.
OriginalContentMICThe Message Integrity Check(s) (one-way hash) of the outgoing message.
PasswordThe password for your incoming mail server.
ReceiptSignerCertEffectiveDateThe date which this certificate becomes valid.
ReceiptSignerCertEncodedThe certificate (PEM/base64 encoded).
ReceiptSignerCertExpirationDateThe date the certificate expires.
ReceiptSignerCertExtendedKeyUsageA comma-delimited list of extended key usage identifiers.
ReceiptSignerCertIssuerThe issuer of the certificate.
ReceiptSignerCertKeyPasswordThe password for the certificate's private key (if any).
ReceiptSignerCertPrivateKeyThe private key of the certificate (if available).
ReceiptSignerCertPrivateKeyAvailableShows whether a PrivateKey is available for the selected certificate.
ReceiptSignerCertPrivateKeyContainerThe name of the PrivateKey container for the certificate (if available).
ReceiptSignerCertPublicKeyThe public key of the certificate.
ReceiptSignerCertPublicKeyAlgorithmTextual description of the public key algorithm of the certificate.
ReceiptSignerCertPublicKeyLengthThe length of the certificate public key (in bits).
ReceiptSignerCertSerialNumberThe serial number of the certificate encoded as a string.
ReceiptSignerCertSignatureAlgorithmTextual description of the signature algorithm of the certificate.
ReceiptSignerCertStoreThe name of the certificate store for the client certificate.
ReceiptSignerCertStorePasswordIf the certificate store is of a type that requires a password, this property is used to specify that password in order to open the certificate store.
ReceiptSignerCertStoreTypeThe type of certificate store for this certificate.
ReceiptSignerCertSubjectThe subject of the certificate used for client authentication.
ReceiptSignerCertSubjectAltNamesA comma-separted lists of alternative subject names of the certificate.
ReceiptSignerCertThumbprintMD5MD5 hash of the certificate.
ReceiptSignerCertThumbprintSHA1SHA1 hash of the certificate.
ReceiptSignerCertUsageTextual description of UsageFlags .
ReceiptSignerCertUsageFlagsFlags that show intended use for the certificate.
ReceiptSignerCertVersionThe certificate's version number.
RecipientCertEffectiveDateThe date which this certificate becomes valid.
RecipientCertEncodedThe certificate (PEM/base64 encoded).
RecipientCertExpirationDateThe date the certificate expires.
RecipientCertExtendedKeyUsageA comma-delimited list of extended key usage identifiers.
RecipientCertIssuerThe issuer of the certificate.
RecipientCertKeyPasswordThe password for the certificate's private key (if any).
RecipientCertPrivateKeyThe private key of the certificate (if available).
RecipientCertPrivateKeyAvailableShows whether a PrivateKey is available for the selected certificate.
RecipientCertPrivateKeyContainerThe name of the PrivateKey container for the certificate (if available).
RecipientCertPublicKeyThe public key of the certificate.
RecipientCertPublicKeyAlgorithmTextual description of the public key algorithm of the certificate.
RecipientCertPublicKeyLengthThe length of the certificate public key (in bits).
RecipientCertSerialNumberThe serial number of the certificate encoded as a string.
RecipientCertSignatureAlgorithmTextual description of the signature algorithm of the certificate.
RecipientCertStoreThe name of the certificate store for the client certificate.
RecipientCertStorePasswordIf the certificate store is of a type that requires a password, this property is used to specify that password in order to open the certificate store.
RecipientCertStoreTypeThe type of certificate store for this certificate.
RecipientCertSubjectThe subject of the certificate used for client authentication.
RecipientCertSubjectAltNamesA comma-separted lists of alternative subject names of the certificate.
RecipientCertThumbprintMD5MD5 hash of the certificate.
RecipientCertThumbprintSHA1SHA1 hash of the certificate.
RecipientCertUsageTextual description of UsageFlags .
RecipientCertUsageFlagsFlags that show intended use for the certificate.
RecipientCertVersionThe certificate's version number.
SendToThe recipient of the message.
SigningCertEffectiveDateThe date which this certificate becomes valid.
SigningCertEncodedThe certificate (PEM/base64 encoded).
SigningCertExpirationDateThe date the certificate expires.
SigningCertExtendedKeyUsageA comma-delimited list of extended key usage identifiers.
SigningCertIssuerThe issuer of the certificate.
SigningCertKeyPasswordThe password for the certificate's private key (if any).
SigningCertPrivateKeyThe private key of the certificate (if available).
SigningCertPrivateKeyAvailableShows whether a PrivateKey is available for the selected certificate.
SigningCertPrivateKeyContainerThe name of the PrivateKey container for the certificate (if available).
SigningCertPublicKeyThe public key of the certificate.
SigningCertPublicKeyAlgorithmTextual description of the public key algorithm of the certificate.
SigningCertPublicKeyLengthThe length of the certificate public key (in bits).
SigningCertSerialNumberThe serial number of the certificate encoded as a string.
SigningCertSignatureAlgorithmTextual description of the signature algorithm of the certificate.
SigningCertStoreThe name of the certificate store for the client certificate.
SigningCertStorePasswordIf the certificate store is of a type that requires a password, this property is used to specify that password in order to open the certificate store.
SigningCertStoreTypeThe type of certificate store for this certificate.
SigningCertSubjectThe subject of the certificate used for client authentication.
SigningCertSubjectAltNamesA comma-separted lists of alternative subject names of the certificate.
SigningCertThumbprintMD5MD5 hash of the certificate.
SigningCertThumbprintSHA1SHA1 hash of the certificate.
SigningCertUsageTextual description of UsageFlags .
SigningCertUsageFlagsFlags that show intended use for the certificate.
SigningCertVersionThe certificate's version number.
SSLAcceptServerCertEncodedThe certificate (PEM/base64 encoded).
SSLCertEncodedThe certificate (PEM/base64 encoded).
SSLCertStoreThe name of the certificate store for the client certificate.
SSLCertStorePasswordIf the certificate store is of a type that requires a password, this property is used to specify that password in order to open the certificate store.
SSLCertStoreTypeThe type of certificate store for this certificate.
SSLCertSubjectThe subject of the certificate used for client authentication.
SSLServerCertEncodedThe certificate (PEM/base64 encoded).
SSLStartModeDetermines how the component starts the SSL negotiation. By default, SSL will not be used.
SubjectThe subject of the message.
UserThe username for your incoming mail server.

Method List


The following is the full list of the methods of the component with short descriptions. Click on the links for further details.

ConfigSets or retrieves a configuration setting.
ConnectConnects to the incoming mail server.
DeleteMessageDeletes the message specified by MailMessageNumber.
DisconnectDisconnects from the incoming mail server.
ProcessQueueSend the messages queued for sending.
QueuePrepares and queues the message to the specified directory.
ReadReceiptReads and parses (but does not verify) an MDN receipt.
SendPrepares and sends the AS1 message.
SetRequestHeaderAllows the user to set or add arbitrary HTTP request headers.
VerifyReceiptVerifies an MDN receipt.

Event List


The following is the full list of the events fired by the component with short descriptions. Click on the links for further details.

ConnectionStatusFired to indicate changes in connection state.
EndTransferFired when the message text completes transferring.
ErrorInformation about errors during data delivery.
HeaderFired for every message header being retrieved.
PITrailTraces the commands sent to the mail server, and the respective replies.
SSLServerAuthenticationFired after the server presents its certificate to the client.
SSLStatusShows the progress of the secure connection.
StartTransferFired when the message text starts transferring (on either a send or receive).
TransferFired while the message text gets transferred to or from MailServer.

Configuration Settings


The following is a list of configuration settings for the component with short descriptions. Click on the links for further details.

POPPortThe POP mail port to be used, if different than MailServer.
POPServerThe POP server to be used, if different than MailServer.
SMTPAuthMechanismThe authentication mechanism used to connect to the SMTP server.
SMTPPasswordThe password used for authentication.
SMTPPortThe SMTP mail port to be used, if different than MailServer.
SMTPServerThe SMTP server to be used, if different than MailServer.
SMTPSSLStartModeDetermines how SSL negotiation starts with the SMTP server.
SMTPUserThe user name used for authentication.
UseCryptoAPIWhether to use the Microsoft Crypto API for cryptographic message generation.
ReuseSSLSessionDetermines if the SSL session is reused.
SSLCipherStrengthThe minimum cipher strength used for bulk encryption.
SSLEnabledProtocolsUsed to enable/disable the supported security protocols.
SSLProviderThe name of the security provider to use.
SSLSecurityFlagsFlags that control certificate verification.
OpenSSLCADirThe path to a directory containing CA certificates.
OpenSSLCAFileName of the file containing the list of CA's trusted by your application.
OpenSSLCipherListA string that controls the ciphers to be used by SSL.
OpenSSLPrngSeedDataThe data to seed the pseudo random number generator (PRNG).
CodePageThe system code page used for Unicode to Multibyte translations.
| About | Privacy Policy | Terms of Use |
© Copyright 2012 /n software inc.