• limjh
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies

Hi Readers,

In early December 2017, we got Salesforce instance refresh email notification. Subjected as, “ATTENTION: Prepare for the EU2 Instance Refresh to EU10 on December 3 / December 2”
By following hardcoded URL guide line, we replaced EU3 instance to LOGIN 
Changed, https://eu3.salesforce.com/services/Soap/class/SpiderProductImportWebservice
 To https://login.salesforce.com/services/Soap/class/SpiderProductImportWebservice

 
Before instance updating URL it was working fine but after 3rd December whenever we are calling above SOAP URL import products in Salesforce, salesforce service throwing an invalid session ID error. 
 
Error Description:
INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session. Session not found, missing session hash: 4g6PHCAg6Mm/ResQb+WfTROw9h1f90gKOr2qIM46OdI=
This error usually occurs after a session expires or a user logs out.

 
Sales force Login service is working fine, after successful login I’m passing Session ID to header of ImportProduct SOAP service. 
I also tried, eu10.salesforce URL. Same problem exists there. 
Also, I checked session enable time it is 4hrs.
 
Kindly, assist me to encounter this issue.

Thanks in Advance

  • January 16, 2018
  • Like
  • 0
Hi,
We encouter this error recently (it was working 3 months ago) while trying to connect to salesforce SOAP service method; importProducts.

Do you have any idea why this happen?
Error:
System.ServiceModel.FaultException: INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session. Session not found, missing session hash: cWDoKsK9fIn01hr05uV2ZaCI+c6Q1iuM4xAtxMSCPxs=
This error usually occurs after a session expires or a user logs out.
 
Information:

<endpoint address="https://test.salesforce.com/services/Soap/c/28.0/0DFw00000000ePf" binding="basicHttpBinding" bindingConfiguration="SoapBinding"
        contract="Salesforce.Soap" name="Soap"/>
      <endpoint address="https://cs17.salesforce.com/services/Soap/class/SpiderProductImportWebservice" binding="basicHttpBinding"
        bindingConfiguration="SpiderProductImportWebserviceBinding" contract="SalesforceProductsList.SpiderProductImportWebservicePortType"
        name="SpiderProductImportWebservice"/>
      <endpoint address="https://cs17.salesforce.com/services/Soap/class/SpiderContractPriceImportWebservice" binding="basicHttpBinding"
        bindingConfiguration="SpiderProductImportWebserviceBinding" contract="SalesforceContractPricesList.SpiderContractPriceImportWebservicePortType"
        name="SpiderContractPriceImportWebservice"/>

Kind regards,
Faizan
  • January 19, 2017
  • Like
  • 0
Hello,

I am preparing to move a webservice call that has been in testing in my sandbox environment and works as expected there.  When I run the same call against my production environment I receive the following error:

Fatal error: Uncaught SoapFault exception: [sf:INVALID_SESSION_ID] INVALID_SESSION_ID: Invalid Session ID found in SessionHeader: Illegal Session. Session not found, missing session hash: <**HASH REMOVED**> This is expected, it can happen if the session has expired and swept away, or if the user logs out, or if its just someone trying to hack in.

The code is fairly simple - I am creating a connection with the PHP toolkit using the appropriately generated partner wsdl.jsp and logging in.  I am able to log in  but when I make the call to the webservice I am given the error above.  Could this be an issue in the way the production org is set up or do I need to look elsewhere?

Code used to call the service is below.  The error is thrown on $client->IsThisLiveProduct($valuearray);
$USERNAME = "USERNAME";
$PASSWORD = "PASSWORD";
$TOKEN = "TOKEN";

require_once ('/soapclient/SforcePartnerClient.php');
require_once ('/soapclient/SforceHeaderOptions.php');

$mySforceConnection = new SforcePartnerClient();
$mySoapClient = $mySforceConnection->createConnection("../forcecom2/soapclient/wsdl.jsp.xml");
$mylogin = $mySforceConnection->login($USERNAME, $PASSWORD . $TOKEN);

$parsedURL = parse_url($mySforceConnection->getLocation());
define ("_WS_NAME_", 'WSNAME');
define ("_WS_WSDL_", _WS_NAME_ . '.xml');
define ("_WS_NAMESPACE_", 'http://soap.sforce.com/schemas/class/' . _WS_NAME_);

// SOAP Client for Web Service
$client = new SoapClient(_WS_WSDL_);
$sforce_header = new SoapHeader(_WS_NAMESPACE_, "SessionHeader", array("sessionId" => $mySforceConnection->getSessionId()));
$client->__setSoapHeaders(array($sforce_header));

// Call the web service
$valuearray = array('SerialNumber'=>'SERIALNO');
$response = $client->IsThisLiveProduct($valuearray);

Thanks!