What is the endpoint to POST

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> some content </env:Envelope>

You don't send the SOAP POST requests to any of those URLs. They are XML namespaces - see Why are URLs in XML namespaces?.

For the initial login() call you should use the endpoints defined in the docs:


E.g. You need to replace "version" with the actual API version. https://login.salesforce.com/services/Soap/u/49.0. You will typically see this endpoint address in the <soap:address location> at the end of the WSDL.

The LoginResult that gets returned from the login() API call will include a serverURL. All subsequent API requests need to go to that URL and include the sessionId in the header.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.