HTTP and Poller Transports User Guide

     Previous  Next    Open TOC in new window    View as PDF - New Window  Get Adobe Reader - New Window
Content starts here

Transports

You can use different types of transports to configure proxy services or business services in ALSB. The transport protocol you select depends on the service type, the type of authentication required, the service type of the invoking service, and so on.

Poll-based transports are transports with transport pollers pinned to a managed server. These transports use the JMS framework to ensure that the processing of a message is done at least once. E-mail, File, FTP, and SFTP are poll-based transports. This section describes the poll-based transports and the HTTP transport. For information on SFTP, see SFTP Transport.

 


E-mail Transport

You can select the e-mail transport protocol when you configure a Messaging Type or Any XML Service type of proxy service or business service. The following topics describe how to configure proxy services and business service using the E-mail transport.

Note: E-mail transport supports one-way messaging for services of Messaging Services type.
Note: When you create a messaging type proxy service or a messaging type business service using e-mail transport you must set the response type to none in the Message Type configuration page.

Configuring Proxy Services using the E-mail Transport

When you configure a proxy service using the e-mail transport, you must specify an endpoint URI in the following format:

mailfrom:<mailserver-host:port>

where mailserver-host: is the name of the host mail server port: is the port used by the mail server host.

Table 1-1 describes the parameters you can configure for an e-mail transport based proxy service.

Table 1-1   Parameters for Configuring E-mail Transport for Proxy Services
Parameter
Description
Service Account
This is a mandatory parameter. This is the service account resource. The service account consists of a user name/password combination required to access the e-mail account.
Polling Interval
This is a mandatory parameter. This parameter specifies the polling interval in milliseconds. The default value is 60 ms.
E-mail Protocol
This is a mandatory parameter. There are two types of protocol from which you can select, imap and pop3. The default protocol is pop3.
Read Limit
This is a mandatory parameter. This specifies the number of files to be read in each poll. The default value is 10.
Pass By Reference
If this parameter is enabled, the file is staged in the archive directory and passed as a reference in the message headers.
Post Read Action
This is a mandatory parameter. This specifies whether the files should be deleted, moved, or archived after being read by the service. By default the files are deleted after reading.
Attachments
This is a mandatory parameter. This parameter specifies if the attachments are to be archived or ignored. By default this parameter is set to ignore.

Note: If attachments are archived, the attachment files are passed as a reference in the message headers irrespective of the settings for the Pass By Reference parameter.

IMAP Move Folder
This is the destination of the messages if the Post Read Action is set to move.
You must configure this field only if Post Read Action is set to move.
Download Directory
This is a mandatory parameter. It specifies the file system directory path to download the message.
Archive Directory
This is a mandatory parameter. A file URI that points to the directory where the files are archived. This field is active only when Post Read Action parameter is set to archive.
Error Directory
This is an optional parameter. This parameter specifies the type of encoding to read the request message. The default encoding is iso-8859-1.

For more information on how to configure e-mail services, see Transport Configuration in Using the AquaLogic Service Bus Console.

Configuring Business Services using the E-mail Transport

When you configure a business service using the e-mail transport, you must specify the endpoint URI in the following format:

mailto:<name@domain_name.com>

where <name@domain_name.com> is the e-mail destination.

Table 1-2 describes the parameters you can configure for an e-mail transport based proxy service.

Table 1-2 Parameters for Configuring E-mail Transport for Business Services
Parameter
Description
SMTP Server
You must select an SMTP Server from the drop-down list.
You must first create the SMTP Server resource.
Mail Session
This parameter is optional. It is the JNDI name of the configured mail session. You can select mail sessions from the drop-down list.
From Name
You must first configure mail sessions in the WebLogic Server Console.
From Address
Create a Mail Session in WebLogic Server Administration Console. You must set the Mail Session parameter or the SMTP Server parameter.
Reply To Name
This is an optional parameter. This parameter specifies the name from which the reply should be sent.
Reply To Address
This is an optional parameter. This parameter specifies the e-mail address from which the e-mail message should be sent.
Connection Timeout
This is an optional parameter. You can use this parameter to specify time in milliseconds after which the connection to the SMTP server times out.
Request Encoding
This is an optional parameter. This parameter specifies the type of encoding to read the request message. The default encoding is iso-8859-1.

For more information on how to configure this transport, see Transport Configuration in Using the AquaLogic Service Bus Console.

 


File Transport

You can select the File transport protocol when you configure a Messaging Type or Any XML Service type of proxy service and the endpoint URI is of the form:

file:///<root-dir/dir1>

where root-dir/dir1 is the absolute path to the destination directory.

Note: File transport supports one-way messaging only for services of Messaging Service type.
Note: When you create a messaging type proxy service or a messaging type business service using file transport you must set the response type to none in the Message Type configuration page.

Configuring Proxy Services using the File Transport

Table 1-3 describes the parameters you can specify to configure the file transport for a proxy service.

Table 1-3 Parameters for Configuring File Transport for Proxy Services
Parameter
Description
File Mask
This is an optional parameter. This specifies the files that should be polled by the proxy service. If the URI is a directory and *.* is specified, then the service will poll for all the files in the directory.
Polling Interval
This is a mandatory parameter. This specifies the value for the polling interval in milliseconds. The default value is 60 ms.
Read Limit
This is a mandatory parameter. This specifies the number of files to be read in each poll. The default value is 10. If 0 is specified, all the files are read.
Sort By Arrival
This is an optional parameter. This parameter indicates the sequence of events raised in the order of the arrival of files. The default value for this parameter is False.
Scan Subdirectories
This is optional. If enabled, the sub-directories are also scanned.
Pass By Reference
If this parameter is enabled, the file is staged in the archive directory and passed as a reference in the headers.
Post Read Action
This parameter is mandatory. This specifies whether the files should be deleted or archived after being read by the service. By default the files are to be deleted after reading.
Stage Directory
This is a mandatory parameter. This file URI points to the staging directory.

Note: You must not put the stage directory inside the polling directory.

Archive Directory
This is a mandatory parameter. This file URI points to the directory where the files are archived. This field is active only when Post Read Action parameter is set to archive.

Note: You must not put the archive directory inside the polling directory

Error Directory
This is a mandatory parameter. This URI points to a directory, in which the contents of the file will be stored in case of a error.

Note: You must not put the error directory inside the polling directory

Request Encoding
This is an optional parameter. This parameter specifies the type of encoding to read the request message. The default encoding is utf-8.

For more information on how to configure file transport based proxy services, see Transport Configuration in Using the AquaLogic Service Bus Console.

Configuring Business Services using the File Transport

When you configure a business service using the file transport you must specify the endpoint URI in the following format:

file:///<root-dir/dir1>

where root-dir/dir1 is the absolute path to the destination directory.

Table 1-4 describes the parameters you can specify to configure the file transport for a proxy service.

Table 1-4 Parameters for Configuring File Transport for Business Services
Parameter
Description
Prefix
This is an optional parameter. This parameter specifies the prefix to be attached to the filename.
Suffix
This is an optional parameter. This parameter specifies the suffix to be attached to the filename.
Request Encoding
This is an optional parameter. This specifies the type of encoding to read the message. The default encoding which will be used is utf-8.

For more information on how to configure this transport, see Transport Configuration in Using the AquaLogic Service Bus Console.

 


FTP Transport

You can select the FTP transport protocol when you configure a Messaging Type or Any XML Service type of proxy service and the endpoint URI is of the form:

ftp://<hostname:port/directory>

where

Note: File transport supports one-way messaging for services of Messaging Services type.
Note: When you create a messaging type proxy service or a messaging type business service using FTP transport you must set the response type to none in the Message Type configuration page.

Configuring Proxy Services using the FTP Transport

Table 1-5 describes the parameters you can specify the parameters to configure the FTP transport for a proxy service.

Table 1-5   Parameters for Configuring FTP Transport for Business Services
Parameter
Description
User Authentication
You must select one of the following types of user authentication:
  • anonymous– If you select anonymous, you do not require any login credentials to login to the FTP server, but you optionally supply your e-mail ID for identification.
  • external user– If you select external user, you have to reference a Service Account resource, which contains your user name/password for the FTP server.
Pass By Reference
This is an optional parameter. If this parameter is enabled, the file is staged in the archive directory and passed as a reference in the headers.
Remote Streaming
This is an optional parameter. Setting this parameter to True will poll FTP files directly from the remote server at processing time.
File Mask
This is a mandatory parameter. This specifies the files that should be polled by the proxy service. If the URI is a directory and *.* is specified, then the service will poll all the files in the directory.
Polling Interval
This is a mandatory parameter. This specifies the value for the polling interval in milliseconds. The default value is 60 ms.
Read Limit
This is a mandatory parameter. This specifies the number of files to be read in each poll. The default value is 10.
Post Read Actions
This is a mandatory parameter. This specifies whether the files should be deleted or archived after being read by the service. By default, the files are deleted after reading.
Transfer Mode
This parameter specifies whether the mode of file transfer is binary or ASCII. By default the transfer is binary.
Stage Directory
This is a mandatory parameter. This file URI points to the staging directory.
Archive Directory
This is a mandatory parameter. This file URI points to the directory where the files are archived. This field is active only when Post Read Action parameter is set to archive.
Error Directory
This is a mandatory parameter. This URI points to a directory location, where the contents of the file will be stored in case of a error.
Request Encoding
This is an optional parameter. This parameter specifies the type of encoding to read the request message. The default encoding is utf-8.
Advanced Settings
Click the icon to expand the Advanced Settings section. Configuring parameters in this section is optional. The parameters you can set in this section are:
  • Scan Subdirectories– This is optional. If enabled the sub-directories are also scanned.
  • Sort By Arrival
  • Timeout
  • Retry

For more information on how to configure file transport based proxy services, see Transport Configuration in Using the AquaLogic Service Bus Console.

Configuring Business Services using the FTP Transport

You can select the FTP transport protocol when you configure a Messaging Type or Any XML Service type of business service and the endpoint URI is of the form:

ftp://<hostname:port/directory> 

where

Table 1-6 describes the parameters you must specify to configure the FTP transport for a business service.

Table 1-6 Parameters for Configuring FTP Transport for Business Service
Parameter
Description
User Authentication
You must select one of the following types of User Authentication:
  • anonymous– If you select anonymous, you do not require any login credentials to login to the FTP server. But you optionally supply your e-mail ID for identification.
  • external user– If you select external user, you have to reference a Service Account resource, which contains your user name/password for the FTP server.
Prefix for destination filename
This is a mandatory parameter. This parameter specifies the prefix to be attached to the filename.
Suffix for destination filename
This is a mandatory parameter. This parameter specifies the suffix to be attached to the filename.
Request Encoding
This is an optional parameter. This parameter specifies the encoding for the request message.

For more information on how to configure this transport, see Transport Configuration in Using the AquaLogic Service Bus Console.

 


HTTP Transport

You can select the HTTP transport protocol when you configure any type of proxy service. The endpoint URI is of the form:

/someService

where someService is the name of proxy service or a business service

Configuring Proxy Services using the HTTP Transport

Table 1-7 describes the parameters you can specify to configure the HTTP transport for a proxy service.

Table 1-7   Parameters for Configuring HTTP Transport for Proxy Service
Parameter
Description
HTTPS Required
Select this check box for inbound HTTPS endpoints.
To learn more, see Configuring Transport-Level Security in the AquaLogic Service Bus Security Guide.
Authentication
You must configure one of the following authentication methods::
  • None - Specifies that authentication is not required.
  • Basic - Specifies that basic authentication is required to access this service.
  • Basic authentication instructs WebLogic Server to authenticate the client using a user name and password against the authentication providers configured in the security realm, such as a Lightweight Directory Access Protocol (LDAP) directory service and Windows Active Directory. The client must send its user name and password on the HTTP request header.

    Basic authentication is strongly discouraged over HTTP because the password is sent in clear text. However, it is safe to send passwords over HTTPS because HTTPS provides an encrypted channel.

    Warning: By default, all users (authorized and anonymous) can access a proxy service. To limit the users who can access a proxy service, create a transport-level authorization policy. See Editing Transport-Level Access Policies in Using the AquaLogic Service Bus Console.

  • Client Certificate - Specifies encrypted communication and strong client authentication (two-way SSL). To learn more, see Configuring Transport-Level Security in the AquaLogic Service Bus Security Guide.
  • Custom Authentication - Specifies that an authentication token is contained in an HTTP header. The client's identity is established through the use of this client-supplied token. You must configure an Identity Assertion provider that maps the token to an ALSB user.
The custom authentication token can be of any active token type supported by a configured WebLogic Server Identity Assertion provider.
Dispatch Policy
Select a dispatch policy for this endpoint. Leave blank to use the default dispatch policy.
Dispatch policy refers to the instance of WLS Work Manager that you want to use for the service endpoint. For information about Work Managers, see Using Work Managers to Optimize Scheduled Work and Create Work Manager in the WebLogic Server Administration Console Online Help.
Request Encoding
  • For HTTP inbound transports:
  • If the character set encoding parameter of the Content-Type header is not specified in Client Request, enter a character set encoding parameter. If you do not enter a value, the field defaults to ISO-8859-1.

  • For HTTP outbound transports:
  • If you have not configured a request encoding, the ALSB run time decides the most appropriate encoding while it makes a request to the business service. In the case of a non-passthrough scenario, the default character encoding is UTF-8 at run time. However if it is a passthrough scenario, the run time will pass through the encoding received with the outbound response.

Response Encoding
Accept the default ISO-8859-1 as the character set encoding for responses in HTTP transports, or enter a different character set encoding.

For more information on how to configure HTTP transport based proxy services and advanced settings, see Transport Configuration in Using the AquaLogic Service Bus Console.

Configuring Business Services using the HTTP Transport

You must select HTTP as the transport protocol when you configure any type of business service based on HTTP and the endpoint URI is of the form:

http://<host:port/someService>

where:

Note: You must specify the following endpoint URI when you configure a business service based on HTTPS.
Note: https://<host:port/someService>

Table 1-8 describes all the parameters you can specify to configure HTTP transport for a business service.

Table 1-8 Parameters for Configuring HTTP Transport for Business Service
Parameter
Description
Timeout
This parameter specifies the HTTP timeout interval, in seconds, before the connection is dropped. The default value for this parameter is 0, meaning that there is no timeout.
HTTP Request Method
This parameter enables you to select the GET or the POST method as the HTTP request method header for sending a message.
The GET method can include as part of the request some of its own information that better describes what to get. This information is passed as a sequence of characters appended to the request URL in a query string. The POST method passes all its data, of unlimited length, directly over the socket connection as part of its HTTP request body. The exchange is invisible to the client, and the URL doesn't change at all.
Authentication
Select one of the following:
  • None - Specifies that authentication is not required to access this service.
  • Basic - Specifies that basic authentication is required to access this service.
  • Basic authentication instructs WebLogic Server to authenticate the client using a user name and password against the authentication providers configured in the security realm, such as a Lightweight Directory Access Protocol (LDAP) directory service and Windows Active Directory. The client must send its user name and password on the HTTP request header.

    Basic authentication is strongly discouraged over HTTP because the password is sent in clear text. However, it is safe to send passwords over HTTPS because HTTPS provides an encrypted channel.

    Warning: By default, all users (authorized and anonymous) can access a business service. To limit the users who can access a business service, create a transport-level authorization policy. See Editing Transport-Level Access Policies in Using the AquaLogic Service Bus Console.

  • Client Certificate - Specifies encrypted communication and strong client authentication (two-way SSL). To learn more, see Configuring Transport-Level Security in the AquaLogic Service Bus Security Guide.
Service Account
A service account is an alias resource for a user name and password. This is a required field if you selected the Basic Authentication Required field.
For more information, see Service Accounts in Using the AquaLogic Service Bus Console.
Follow HTTP redirects
Select this check box to specify that HTTP redirects (which are requests with a response code 3xx) should be automatically followed. A re-direct occurs when you send an outbound request to the URL of a business service, and that service returns a response code (for example, 302) that says the URL is no longer valid and this request needs to be sent to another URL. If the Follow HTTP Redirects check box is selected, ALSB automatically re-sends the request to the new URL without any action on your part. Deselect this check box if you do not want the HTTP redirects to be automatically followed.
Dispatch Policy
Select the instance of WebLogic Server Work Manager that you want to use for the dispatch policy for this endpoint. The default Work Manager is used if no other Work Manager exists. For information about Work Managers, see Using Work Managers to Optimize Scheduled Work and Create Work Manager in the WebLogic Server Administration Console Online Help..
Request Encoding
Accept the default iso-8859-1 as the character set encoding for requests in HTTP transports, or enter a different character set encoding.
Response Encoding
Accept the default iso-8859-1 as the character set encoding for responses in HTTP transports, or enter a different character set encoding.

For more information on how to configure this transport, see Transport Configuration in Using the AquaLogic Service Bus Console.


  Back to Top       Previous  Next