+ Start a Discussion
David-David- 

Partner Portal: Tip for toggling between test/production environments

If you run a salesforce.com test instance (test.salesforce.com) and you want to run your partner portal in a parallel dev/test environment, here's configuration-based approach to accomplish this:

1) Add to Config.properties

# Salesforce Endpoint
salesforce.endpoint=https://test.salesforce.com/services/Soap/u/5.0;

2) Edit \WEB-INF\src\java\com\sforce\soap\partner\SforceServiceLocator.java

private final java.lang.String Soap_address = (String) props.get("salesforce.endpoint");

3) In your production environment's Config.properties...

salesforce.endpoint=https://www.salesforce.com/services/Soap/u/5.0;