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
manoj6492manoj6492 

Missing SOAP action header

Hi all,
          Im trying get the   session ID of another user in the same org using the sOAP .But when i send the request Im getting MIssing SOAP action header as error message .But for that request SOAP action is blank in wsdl file generated from my Developer edition.The following is the request im sending to salesforce server
<?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:organizationId>xxxxxxx</urn:organizationId>
   </soapenv:Header>
   <soapenv:Body>
      <urn:login>
         <urn:username>xxxxxxxxx</urn:username>
         <urn:password>xxxxxxxxx</urn:password>
      </urn:login>
   </soapenv:Body>
</soapenv:Envelope>

Pramod_SFDCPramod_SFDC
Hi 

Can you try the below mentioned sample request code and try if this works for you.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:enterprise.soap.sforce.com">
   <soapenv:Header>
     
   </soapenv:Header>
   <soapenv:Body>
      <urn:login>
         <urn:username>*************</urn:username>
         <urn:password>**************</urn:password>
      </urn:login>
   </soapenv:Body>
</soapenv:Envelope>




Thanks
Pramod