Adapter Connections
Overview
This chapter describes how to configure and manage Adapter for Salesforce connections. For more information about how adapter connections work, see Adapter Connections.
For instructions on how to configure the proxy servers, see the IBM webMethods Integration Server Administrator’s Guide for your release.
Before Configuring or Managing Adapter Connections
About this task
To prepare to configure or manage an adapter connection
Procedure
- Install Integration Server Administrator and Adapter for Salesforce on the same machine. For details, see Installing, Upgrading, and Uninstalling IBM webMethods Adapter for Salesforce.
- Make sure you have webMethods administrator privileges so that you can access Adapter for Salesforce's administrative screens. For information about setting user privileges, see the IBM webMethods Integration Server Administrator’s Guide for your release.
- Start Integration Server and Integration Server Administrator, if they are not already running.
- Using Integration Server Administrator, make sure the WmSalesforceAdapter package is enabled. See Enabling Adapter Connections for instructions.
- Using Designer, create a user-defined package to contain connections, if you have not already done so. See Managing the Adapter Package for details.
- Create your connections, as described in Configuring Adapter Connections.
Configuring Adapter Connections
About this task
When you configure Adapter for Salesforce connections, you specify information that Integration Server uses to connect to Salesforce.com and Database.com. Using Integration Server Administrator, you can configure two types of Adapter for Salesforce connections: Salesforce.com or Salesforce.com OAuth.
Adapter for Salesforce connections can use HTTP/HTTPS proxy servers registered with Integration Server to connect to Salesforce.com. To enable the proxy settings, in Integration Server Administrator, set the watt.adapter.salesforce.useproxy watt property to true. By default, the property is set to false. If the watt property is set to true, a Adapter for Salesforce connection automatically uses the default proxy server registered with Integration Server, provided that the proxy server is enabled. If you change the proxy server settings in the Integration Server configuration parameters, restart Integration Server because the settings are cached at the Integration Server level.
For information about configuring the watt.adapter.salesforce.useproxy watt property, see the IBM webMethods Integration Server Administrator’s Guide for your release.
Configuring a Salesforce Connection
About this task
To configure a Salesforce connection
Procedure
Configuring a Salesforce OAuth Connection
About this task
To configure a Salesforce OAuth connection
Procedure
Dynamically Changing a Service's Connection at Run Time
About this task
You can run an adapter service using a connection other than the default connection that was associated with the service when it was created. To override the default, you must code your flow service to pass a value through the pipeline into the adapter service's $connectionName field.
For example, you have a flow service that creates a new account for the Account Salesforce object in the Salesforce.com production area. However, for testing purposes you want the flow service to have the capability to create the account in the Salesforce.com Sandbox. At run time, you want the flow service to determine programmatically whether to create the account in the production area or the Sandbox. Set up your flow service to have a Target variable so that it can branch its logic based on the value in Target:
- If
Target
contains the value
production, the flow service does not specify a value for the $connectionName pipeline variable, which causes the adapter service to use its default connection to the production area. - If
Target
contains the value
test, the flow services sets the $connectionName variable to the connection for the Sandbox so that the adapter service creates the account in the Sandbox.
Alternatively, you can use the configured connection for an adapter service, but at run time override the Salesforce.com user credentials defined in the connection. To override the user credentials, you must code your flow service to pass values through the pipeline into the adapter service's username and password fields.
For more information, see Changing the Connection Associated with an Adapter Service at Run Time.
Viewing Adapter Connection Parameters
About this task
You can view a connection's parameters from Integration Server Administrator and Designer.
Viewing Parameters Using Integration Server Administrator
About this task
To view the parameters for an adapter connection using Integration Server Administrator
Procedure
Viewing Parameters Using Designer
About this task
To view the parameters for an adapter connection using Designer
Procedure
Editing Adapter Connections
About this task
Use Integration Server Administrator to redefine parameters for a connection.
To edit an adapter connection
Procedure
Copying Adapter Connections
About this task
You can copy an existing Adapter for Salesforce connection to create a new connection with the same or similar connection properties without retyping all properties for the new connection.
To copy an adapter connection
Procedure
Deleting Adapter Connections
About this task
You can delete Adapter for Salesforce connections that you no longer want to use.
When you delete a Adapter for Salesforce connection, the adapter services that are defined to use the connection will no longer work. To assign a different connection to an adapter service and re-use the service, use the webMethods setAdapterServiceNodeConnection built-in service. For more information, see Changing the Connection Associated with an Adapter Service at Design Time.
To delete an adapter connection
Procedure
Enabling Adapter Connections
About this task
Adapter connections must be enabled before you can create adapter services or adapter notifications for those connections.
To enable an adapter connection
Procedure
Disabling Adapter Connections
About this task
Adapter connections must be disabled before you can edit or delete the connections.
To disable an adapter connection