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
Dev1Dev1 

Session ID invalid - But Why?

I've been unable to get past the login, although it seems I am correctly formatting. Keep getting a sessionID invalid error. Perhaps another set of eyes (brains), could help....

upon login, the following results are returned:

'serverUrl' => 'https://na1-api.salesforce.com/services/Soap/u/3.0',
'sessionId' => 'kVwdBQTa73Vi0PY36o.3JPmMqV4kg4k4RHKZka19MV6M..7vH84vt.5mRCAmGT2u.36b9mOoCg4OIizEGqIvEPbtzKggVlhL',
'userId' => '[removed]',

Sent the following SOAP message upon receipt of the above login payload:

<?xml version="1.0" encoding="ISO-8859-1"?>

<SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:si="http://soapinterop.org/xsd">

<SOAP-ENV:Header>

     <nu8118:sessionHeader xmlns:nu8118="SforceService"  SOAP-ENV:mustUnderstand="0">

          <nu2587:sessionId xmlns:nu2587="urn:enterprise.soap.sforce.com" >

               kVwdBQTa73Vi0PY36o.3JPmMqV4kg4k4RHKZka19MV6M..7vH84vt.5mRCAmGT2u.36b9mOoCg4OIizEGqIvEPbtzKggVlhL

          </nu2587:sessionId>

     </nu8118:sessionHeader>

</SOAP-ENV:Header>

<SOAP-ENV:Body><ns1:describeGlobal xmlns:ns1="urn:enterprise.soap.sforce.com"></ns1:describeGlobal>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

 

The following error is continually returned:

soapenv:Server::INVALID_SESSION_ID: Invalid Session ID found in SessionHeader

I've also tried changing the header element from sessionId to sessionID with no luck. Anyone know what I'm doing wrong?

thx

-steve

 

Dev1Dev1
Found my own problem. sessionHandler was supposed to be SessionHandler. (duh!)