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
odieodie 

"-api" added to SoapBindingStub.ENDPOINT_ADDRESS_PROPERTY

Hi,

 

I am developing code using salesforce ws and I'm retrieving the endpoint url for purposes for redirecton in my webapp. However the SoapBindingStub.ENDPOINT_ADDRESS_PROPERTY has a -api in it - 

 

https://na6.salesforce.com/  

 

shows up as

 

https://na6-api.salesforce.com

 

Is this always consistent. If I write code to strip out the "-api" in Java, can I bank on Salesforce to maintain that format consistent.

 

thanks,

Odie 

SuperfellSuperfell
No, you can't bank on salesforce to keep the format consistent. Why do you want to strip the -api from the endpoint URL ?