metamodel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harel E. (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (METAMODEL-26) Provide endpoint URL with SalesforceDataContext
Date Tue, 03 Sep 2013 23:13:51 GMT

    [ 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

Mime
View raw message