AS4Web Configuration
The adapter accepts one or more of the following configuration settings. Configuration settings are similar in functionality to properties, but they are rarely used. In order to avoid "polluting" the property namespace of the adapter, access to these internal properties is provided through the Other property.AS4Web Configuration Settings
AllowWarnings: Whether warnings are interpreted as fatal errors.When set to False (default) any ebMS level error returned by the other party will be considered an error and cause an exception. When set to True the severity of the ebMS error will be inspected. If the severity is "warning" it will not cause an exception. In this case Errors will still be populated with the error details. | |||||||||||||
DetectDuplicates: Whether to detect duplicate messages when receiving.Whether to detect duplicate messages. If set to True LogDirectory must be set. When a file is received
the adapter will store a file containing the MessageId of the received file. When additional files are
received the adapter will scan the LogDirectory to see if a file with the same MessageId has already
been received. If a duplicate is detected an entry is added to the .log file and Log fires.
The default value depends on the Profile. For the Standard profile the default value is False. When Profile is set to ENTSOG this value is set to True. | |||||||||||||
EDIDataPartId[i]: Specified the part Id at the given index.This setting may be used to specify the value for each EDIData part that is present in the message.
By default the adapter will generate a unique value. For instance:
<eb3:PartInfo href="cid:_de48eece-d1d8-4823-8a63-d3a8d14dc1a8@nsoftware">In some cases it may be desired or necessary to specify a user-defined value. For instance: <eb3:PartInfo href="cid:mypart@myhost">After adding the part to EDIData the Id may be specified by setting: AS4Component.Config("EDIDataPartId[0]=mypart@myhost"); | |||||||||||||
EncryptionSecurityTokenFormat: The format to use for the security token when encryption.This setting specifies the security token format that is included in the message when encrypting.
This setting should only be set if there is a specific reason to do so. This specifies the reference
type in the SecurityTokenReference element applicable to the encrypted data. Possible values
are:
The default value is 0 (X509) and should not be changed unless there is a specific reason to do so. | |||||||||||||
SigningSecurityTokenFormat: The format to use for the security token when signing.This setting specifies the security token format that is included in the message when signing.
This setting should only be set if there is a specific reason to do so. This specifies the reference
type in the SecurityTokenReference element applicable to the signed data. Possible values
are:
The default value is 0 (X509) and should not be changed unless there is a specific reason to do so. | |||||||||||||
FilenameProperty: Defines a part property to hold the filename.This setting specifies the PropertyName that will hold the name of the file. This may be used
to preserve filenames. Both the client and server must agree on the name of the property that will be
used to hold the filename.
This is helpful in the case where Profile is set to ebpfStandard and the first file being sent is of type "text/xml" or "application/xml". In that case the file content is included in the SOAP body and there is no standard mechanism for preserving the filename. When set the adapter will automatically populate the property when sending files and will read the filename from this property when receiving files. By default this is not specified. Note: The filenames will always be preserved within the MIME header attributes whenever possible regardless of whether this setting is specified. | |||||||||||||
FromIdCount: The number of Ids for the party specified by AS4From.Multiple Ids may be specified for the AS4From party. This setting defines the total number of Ids.
This is used in conjunction with FromId and FromIdType. For instance:
component.Config("FromIdCount=2"); component.Config("FromId[0]=id1"); component.Config("FromIdType[0]=mytype"); component.Config("FromId[1]=id2"); When receiving a message with multiple Ids, query these settings to read the values. By default this value is unspecified and only a single Id is used as specified in the Id field of AS4From. | |||||||||||||
FromId[i]: The Id of the party specified by AS4From.This setting sets the Id of the party specified by AS4From at the index specified here. This is only used when multiple Ids are set. See FromIdCount for more details. | |||||||||||||
FromIdType[i]: The Id type of the party specified by AS4From.This setting sets the Id type of the party specified by AS4From at the index specified here. This is only used when multiple Ids are set. See FromIdCount for more details. | |||||||||||||
LogLevel: The level of information to log.This setting specifies the level of detail that is logged to the Log event and to any log files on disk.
Possible value are:
| |||||||||||||
LogOptions: The information to be written to log files.When LogDirectory is set, several pieces of information are written to log files in the specified directory. Set
LogOptions to one or more of the following values to control what information is written to file. When specifying
multiple values, include them in the same string (i.e. "LogOptions=Incoming, Outgoing, Log"). The default value is All.
Possible values are:
| |||||||||||||
MGF1HashAlgorithm: The MGF1 hash algorithm used when encrypting a key.When encryption is enabled, this algorithm specifies the MGF1 hash algorithm used for the encryption key by RSA OAEP.
Possible values are:
Note: If Profile is set to ENTSOG the MGF1HashAlgorithm will be set to "SHA256" by default. | |||||||||||||
RequireEncryption: Whether encryption is required when processing received messages.This setting may be set to True to require that received messages are encrypted. When True if a message is received that is not encrypted the adapter will throw an exception. The default value is False. | |||||||||||||
RequireSignature: Whether a signature is required when processing received messages.This setting may be set to True to require that received messages are signed. When True if a message is received that is not signed the adapter will throw an exception. The default value is False. | |||||||||||||
RSAHashAlgorithm: The RSA hash algorithm used when encrypting a key.When encryption is enabled, this algorithm specifies the RSA hash algorithm used for the encryption key.
This may differ from the hash algorithm used to sign the AS4 message content. Possible values are:
| |||||||||||||
OAEPParams: The hex encoded OAEP parameters to be used when encrypting a key.This setting is optional and should only be specified if OAEP parameters need to be explicitly set. The value specified should be a hex string. By default this setting is unspecified. | |||||||||||||
ToIdCount: The number of Ids for the party specified by AS4To.Multiple Ids may be specified for the AS4To party. This setting defines the total number of Ids.
This is used in conjunction with ToId and ToIdType. For instance:
component.Config("ToIdCount=2"); component.Config("ToId[0]=id1"); component.Config("ToIdType[0]=mytype"); component.Config("ToId[1]=id2"); When receiving a message with multiple Ids, query these settings to read the values. By default this value is unspecified and only a single Id is used as specified in the Id field of AS4To. | |||||||||||||
ToId[i]: The Id of the party specified by AS4To.This setting sets the Id of the party specified by AS4To at the index specified here. This is only used when multiple Ids are set. See ToIdCount for more details. | |||||||||||||
ToIdType[i]: The Id type of the party specified by AS4To.This setting sets the Id type of the party specified by AS4To at the index specified here. This is only used when multiple Ids are set. See ToIdCount for more details. | |||||||||||||
TokenPasswordType: The password type used in UsernameToken authentication.This setting specifies the type of password specified when TokenUser and TokenPassword are set.
TokenPassword should normally be set to the plaintext password that both the client and server know.
The adapter will automatically use SHA-1 to create a hash of the password when TokenPasswordType is set to
Digest (default). The hashed password is sent in the request, along with a creation date and nonce.
The server will validate these values when receiving the request. Possible values are:
This setting is only applicable to the Receive adapter | |||||||||||||
ReceiptURL: The URL to which receipts are sent.This property specifies the URL to which receipts are sent if different than URL. This property
should only be set if receipts must be sent to an alternate URL.
This setting is only applicable to the Receive adapter |
General Configuration Settings
AbsoluteTimeout: Determines whether timeouts are inactivity timeouts or absolute timeouts.If AbsoluteTimeout is set to True, any method which does not complete within Timeout seconds will be aborted. By default, AbsoluteTimeout is False, and the timeout is an inactivity timeout. | |
LocalHost: The name of the local host or user-assigned IP interface through which connections are initiated or accepted.The LocalHost configuration contains the name of the local host as obtained by the Gethostname() system call, or if the user has assigned an IP address, the value of that address.
In multihomed hosts (machines with more than one IP interface) setting LocalHost to the value of an interface will make the adapter initiate connections (or accept in the case of server adapters) only through that interface. If the adapter is connected, the LocalHost configuration shows the IP address of the interface through which the connection is made in internet dotted format (aaa.bbb.ccc.ddd). In most cases, this is the address of the local host, except for multihomed hosts (machines with more than one IP interface). | |
TcpNoDelay: Whether or not to delay when sending packets.
When true, the socket will send all data that is ready to send at once. When
false, the socket will send smaller buffered packets of data at small intervals.
This is known as the Nagle algorithm.
By default, this config is set to false. | |
UseManagedSecurityAPI: Tells the adapter whether or not to use the system security libraries or a managed implementation.
By default the adapter will use the system security libraries to perform cryptographic functions. This means
calls to unmanaged code will be made. In certain environments this is not desirable. To use a completely managed security
implementation set this setting to True. Setting this to True tells the adapter to use the internal managed implementation
instead of using the system's security API.
Note that when this value is set the product's system dll is no longer required as a reference, as all unmanaged code is stored in this file. |
Supported Macros
The adapter also supports the following Macros. These values are not case sensitive and would be supplied to a property in the form %MacroName%.
Temp | This is resolved to the full path to the system's temporary directory. |
MessageID | Globally unique identifier (GUID) of the message in BizTalk Server. |
SourceFileName | The original file name. This includes the extension and excludes the file path, for example, Sample.xml |
SourceFileNameNoExt | The original file name without the extension or file path, for example, Sample |
RemoteFileName | The name of the file as it was uploaded to the remote server. This includes the extension and excludes the file path, for example, Sample.xml. Valid only for AS3, FTP, and SFTP Send Adapters. |
DestinationParty | Name of the destination party. |
DestinationPartyQualifier | Qualifier of the destination party. |
SourceParty | Name of the source party. |
SourcePartyQualifier | Qualifier of the source party. |
DateTime:CustomFormat | This special value allows you to specify your own custom time format. For instance DateTime:yyyy would be resolved to the 4 digit year. |
Date | The date format yyyy-MM-dd. |
DateTime | The date format yyyy-MM-ddThhmmss. |
Time | The date format hhmmss. |
DateTime_BTS2000 | The date format yyyyMMddhhmmssf. |
DateTime.TZ | The date format yyyy-MM-ddThhmmsszzz. |
Time.TZ | The date format hhmmsszzz. |