function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Apex_LearnerApex_Learner 

Domain problem

We recently changed the Domain setting to prevent logins from "login.salesforce.com".  Now ANT isn't working for us (neither retrieve or deploy)

Are the only possible values of SF.SERVERURL in an SF ANT scenario either "login.salesforce.com" or "test.salesforce.com" ?

How do you deploy to a production org if "my domain" is used and logins from "login.salesforce.com" are prevented?  

Entering "my domain" for the SF.SERVERURL value results in the error:  "....ID found in SessionHeader: Illegal Session"

(this was working fine on the same server before logins from login.salesforce.com were prevented)
Denis VakulishinDenis Vakulishin
Hi,
Check this threads 
http://salesforce.stackexchange.com/questions/19435/my-domain-and-api-endpoints

https://help.salesforce.com/HTViewHelpDoc?id=domain_name_app_url_changes.htm&language=en_US (https://help.salesforce.com/HTViewHelpDoc?id=domain_name_app_url_changes.htm&language=en_US)
Apex_LearnerApex_Learner
Hi - thanks for responding..Unfortunately I don't see anything in the links that may help in my case.

Do you know if the ANT "sf.serverurl" property can contain a "my domain" value?  I would think so, but I cannot get it to work.  Also I can't find documentation in which SF says the value can be anything other than "login.salesforce.com" or "test.salesforce.com".

I also have a SOAP integration for this server.  After blocking login.salesforce.com, I had to regenerate the WSDL files and edit all references to "na21" and "login.salesforce.com" to use "my domain".  The SOAP integration then worked.

However I have no idea how to similarly change the endpoints for SF's ANT tool though  (?)  It appears that SF's ANT is hardcoded to use login or test.salesforce.com?