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
Badal ShindeBadal Shinde 

Unexpected element {urn:enterprise.soap.sforce.com}session Id during simple type deserialization

This is the request message:
<?xml version="1.0" encoding="utf-8"?>   
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
   xmlns:urn="urn:enterprise.soap.sforce.com">
  <soapenv:Header>
     <urn:SessionHeader>
        <urn:sessionId>
        00D5i0000014B8m!ARYAQLtoOXETtcvv2z3WkG32psiIiDDY8yJY1vHjTEZnVuT1NxbGarPJYtsLiPTHq3_U3jYLCcq6JvFggdaM2XXClEGIpA9h
        <urn:sessionId>
     </urn:SessionHeader>
  </soapenv:Header>
  <soapenv:Body>
     <urn:query>
        <urn:queryString>SELECT id,Name FROM Account </urn:queryString>
     </urn:query>
  </soapenv:Body>
</soapenv:Envelope>

This is the response:

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
        <soapenv:Fault>
            <faultcode>soapenv:Client</faultcode>
            <faultstring>Unexpected element {urn:enterprise.soap.sforce.com}sessionId during simple type deserialization</faultstring>
        </soapenv:Fault>
    </soapenv:Body>
</soapenv:Envelope>
Best Answer chosen by Badal Shinde
SwethaSwetha (Salesforce Developers) 
HI Badal,
You are missing the closing tag for <urn:sessionId>

Change from 
<urn:sessionId>
        00D5i0000014B8m!ARYAQLtoOXETtcvv2z3WkG32psiIiDDY8yJY1vHjTEZnVuT1NxbGarPJYtsLiPTHq3_U3jYLCcq6JvFggdaM2XXClEGIpA9h
<urn:sessionId>

to
<urn:sessionId>
        00D5i0000014B8m!ARYAQLtoOXETtcvv2z3WkG32psiIiDDY8yJY1vHjTEZnVuT1NxbGarPJYtsLiPTHq3_U3jYLCcq6JvFggdaM2XXClEGIpA9h
</urn:sessionId>

If this information helps, please mark the answer as best. Thank you