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
BriscoBrisco 

Questions about URL for SforceServiceLocator().getSoap()

From sample.java:

"       * There are 2 ways to get the binding, one by passing a url to
       * the getSoap() method of the SforceServiceLocator,
       * the other by not passing a url.

"

I'm attempting to use the first way, by passing a url into the method.  Problem is I'm not sure what that URL should be.

I've tried https://na1-api.salesforce.com/services/Soap/c/5.0 with no luck. 

Anything starting with "https" gives me the MalformedURLException: unknown protocol: https

Thanks for any help,

Mike

SuperfellSuperfell
Just use the version that doesn't take an URL, it'll use the correct URL from the WSDL.