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

Properties   Methods   Events   Configuration Settings  

The AS2Sender component implements an AS2 / EDI-INT client.

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 AS2Sender component may be used to send EDI or other messages over HTTP/S, using the AS2 protocol. It may also be used to verify synchronous or asynchronous server responses.

A typical AS2 transaction is as follows:

(1) The sender sends an EDI document to the receiver using HTTP or HTTPS. 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, AS2From and AS2To, URL, and EDIData. The Post 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. If the recipient uses different certificates for signing and encryption it will also be necessary to set ReceiptSignerCert.

SSL will also be used if the scheme in URL is "https". If your trading partner is using a self-signed certificate, 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 MDNOptions property may be used to customize the request. By default, the component will request a signed MDN over an SHA1 hash.

The component supports both synchronous and asynchronous MDN receipt delivery. By default, the component requests synchronous MDN receipt delivery, and the MDN will be returned in the HTTP reply. To request asynchronous MDN delivery, set the MDNDeliveryOption to the URL where MDN's are to be delivered.

The HTTP reply will automatically be processed by the component. If an MDN was requested, Post will validate the MDN and (if signed) establish non-repudiation of receipt. Any errors or warnings will cause the component to throw an exception.

In either case, after the EDI transaction is processed successfully, the MDNReceipt will be populated with the appropriate values.

Validating Asynchronous MDNs

The component may also be used to process and verify asynchronous MDNs. To do this, you should invoke ReadAsyncReceipt. This will read the receipt from the current HTTP context (or from MDNReceipt, if set manually), and allow you to determine your trading partner's identity and the message ID. You should then set ReceiptSignerCert and OriginalContentMIC, and 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.

AS2FromThe AS2 Identifier of the sending system.
AS2ToThe AS2 Identifier of the receiving system.
AS2VersionThe version of AS2 being used.
AsyncMDNInfoDirPath to a directory to store data used in verifying AsyncMDNs.
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.
CookieCountThe number of records in the Cookie arrays.
CookieDomainThe domain of a received cookie.
CookieExpirationThis property contains an expiration time for the cookie (if provided by the server).
CookieNameThe name of the cookie.
CookiePathThis property contains a path name to limit the cookie to (if provided by the server).
CookieSecureThis property contains the security flag of the received cookie.
CookieValueThis property contains the value of the cookie.
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 email address of the HTTP agent (optional).
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.
MDNDeliveryOptionA URL indicating how the receipt is to be delivered.
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.
MDNToUsed to indicate that a message disposition notification is requested.
MessageIdThe Id of the message.
OriginalContentMICThe Message Integrity Check(s) (one-way hash) of the outgoing message.
ProxyAuthSchemeThis property is used to tell the component which type of authorization to perform when connecting to the proxy.
ProxyAutoDetectThis property tells the component whether or not to automatically detect and use proxy system settings, if available.
ProxyPasswordThis property contains a password if authentication is to be used for the proxy.
ProxyPortThis property contains the TCP port for the proxy Server (default 80).
ProxyServerIf a proxy Server is given, then the HTTP request is sent to the proxy instead of the server otherwise specified.
ProxySSLThis property determines when to use SSL for the connection to the proxy.
ProxyUserThis property contains a user name, if authentication is to be used for the proxy.
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.
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).
SubjectThe subject of the message.
TimeoutA timeout for the component.
URLThe URL to post to.
UserAgentInformation about the user agent.

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.
DoEventsProcesses events from the internal message queue.
PostPost data to the AS2 server, and check the receipt.
ReadAsyncReceiptReads an asynchronous MDN receipt from the current HTTP session.
ResetResets the state of the control.
SetRequestHeaderAllows the user to set or add arbitrary HTTP request headers.
SetTPInfoA convenient way to set AS2 communication parameters using XML strings.
VerifyReceiptVerifies an asynchronous 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.

ConnectedFired immediately after a connection completes (or fails).
DisconnectedFired when a connection is closed.
EndTransferFired when a document finishes transferring.
ErrorInformation about errors during data delivery.
HeaderFired every time a header line comes in.
SetCookieFired for every cookie set by the server.
SSLServerAuthenticationFired after the server presents its certificate to the client.
SSLStatusShows the progress of the secure connection.
StartTransferFired when a document starts transferring (after the headers).
TransferFired while a document transfers (delivers document).

Configuration Settings


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

AcceptAnySignerCertUsed to trust any signing certificate when verifying a signature.
AS2VersionThe version of AS2 to be used in the outgoing message.
AuthorizationThe Authorization string to be sent to the server.
BinarySignatureUses binary encoding in signed messages.
EncodeToTempDirA temporary directory to write outgoing requests to before they are sent.
FollowRedirectsFollows HTTP 302 redirects on Posts.
FromSets the From header in an AS2 transmission.
LogOptionsThe information to be written to log files.
PostToFileDirects the post to a file on disk instead of to the trading partner's server.
SignatureAlgorithmSignature algorithm to be used in outgoing messages.
SubjectThe subject of the HTTP post.
UseCryptoAPIWhether to use the Microsoft Crypto API for cryptographic message generation.
UserAgentThe User-Agent of the HTTP post.
HTTPAuthSchemeThe authorization scheme to be used when server authorization is to be performed.
HTTPUserA user name if authentication is to be used.
HTTPPasswordA password if authentication is to be used.
CodePageThe system code page used for Unicode to Multibyte translations.
| About | Privacy Policy | Terms of Use |
© Copyright 2012 /n software inc.