Adapter for Salesforce 8.2 | webMethods Adapter for Salesforce Documentation | webMethods Adapter for Salesforce Installation and User’s Documentation | Adapter Services | Changing the Credentials Associated with an Adapter Service at Run Time
 
Changing the Credentials Associated with an Adapter Service at Run Time
Adapter for Salesforce allows users to specify an alternate connection or user credentials at run-time to invoke the adapter services.
*Configure the adapter service to use the default connection (with which the service was created) or specify an alternate connection alias, as part of the $connectionNameinput field.
*Execute the adapter service by overriding the default credentials, as part of the input signature for the adapter service. The input signature for the adapter services contains a separate document structure: ‘overrideCredentials', with fields $username and $password, for specifying the username and password to be used for the adapter service execution.
Note:
These dynamic credentials are valid only for the currently selected adapter service during runtime. The adapter service makes a separate login request and gets a new sessionId, with which the service call is executed. The adapter service does not use the connection from the connection pool when dynamic credentials are specified. Ensure that the credentials have sufficient privilege to perform the operation.
If there are no values specified for the $username and $password fields, the adapter service uses the default connection.
Note:
When you change the credentials associated with an adapter service at runtime by overriding the default credentials, the adapter communication with Salesforce.com does not use compression.