You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@metamodel.apache.org by "Harel E. (JIRA)" <ji...@apache.org> on 2013/09/04 01:13:51 UTC

[jira] [Commented] (METAMODEL-26) Provide endpoint URL with SalesforceDataContext

    [ https://issues.apache.org/jira/browse/METAMODEL-26?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13757218#comment-13757218 ] 

Harel E. commented on METAMODEL-26:
-----------------------------------

I added (on my local copy) the following constructor to SalesforceDataContext to address the issue. 

{code}
    public SalesforceDataContext(String endpoint, String username, String password, String securityToken) {
        try {
            ConnectorConfig config = new ConnectorConfig();
            config.setUsername(username);
            config.setPassword(password + securityToken);
            config.setAuthEndpoint(endpoint);
            config.setServiceEndpoint(endpoint);
            _connection = Connector.newConnection(config);
        } catch (ConnectionException e) {
            throw SalesforceUtils.wrapException(e, "Failed to log in to Salesforce service");
        }
    }
{code}
                
> Provide endpoint URL with SalesforceDataContext
> -----------------------------------------------
>
>                 Key: METAMODEL-26
>                 URL: https://issues.apache.org/jira/browse/METAMODEL-26
>             Project: Metamodel
>          Issue Type: Improvement
>            Reporter: Harel E.
>            Assignee: Henry Saputra
>
> When using Salesforce in development/uat environment, different URL is needed to access the system.
> For example, https://test.salesforce.com instead of https://login.salesforce.com
> Therefor, It is highly desirable to be able to provide endpoint URL to  SalesforceDataContext

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira