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
John.ax8John.ax8 

Can't use URL https://www.salesforce.com/servlet/servlet.SoapApi

Hello,

I am a new user with a developer account. I can make most of the calls I needed using my developer account login to the URL http://na1.salesforce.com/servlet/servlet.SoapApi .When I need to login with a real account, I can't get it to work.  I then changed the URL to https://www.salesforce.com/servlet/servlet.SoapApi and I can login with a real account, but none of my calls work (ie query, describe).  What do I need to do?

Any help is appreciated.

John

DevAngel2DevAngel2

John,

This is typically because you are not redirecting you calls to the url returned from the login call.  The login call returns a session id, user id and a url.  The url is returned in the server_url element.  You will need to use this url for all api calls except for login.