By using "Generate Enterprise WSDL " I got the below login webservice for my salesforce org.

Login webservice

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:enterprise.soap.sforce.com">
   <soapenv:Body>enter preformatted text here


After running this in SOAP UI, I did not get the sessionId/ serverUrl. The error I got as below:


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sf="urn:fault.enterprise.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <faultstring>INVALID_LOGIN: malformed id: organizationId '?'</faultstring>
            <sf:LoginFault xsi:type="sf:LoginFault">
               <sf:exceptionMessage>malformed id: organizationId '?'</sf:exceptionMessage>
  • Can you once remove inside the header and test it – Nikitha Oct 9 '15 at 7:57
  • 2
    Can you remove inside the header like below: <urn:LoginScopeHeader> <urn:organizationId>?</urn:organizationId> <!--Optional:--> <urn:portalId>?</urn:portalId> </urn:LoginScopeHeader> – Nikitha Oct 9 '15 at 8:08
  • Thanks @Nikitha . After removing the header I got the sessionId and session url. – DOMINIC EDWARD Oct 9 '15 at 9:26
  • Ok fine Dominic... – Nikitha Oct 9 '15 at 9:36

You don't need to define the <urn:LoginScopeHeader> as part of the login API call unless you are authenticating a Self-Service user against a specific org and portal. If that isn't the case you can safely omit that 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.