@ 2013-09-02T06:29:33Z <?php
say(" hello");
try
{
$xml = <<<XML
<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="urn:enterprise.soap.sforce.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><loginResponse><result><metadataServerUrl>https://na3.salesforce.com/services/Soap/m/28.0/00D50000000IdrE</metadataServerUrl><passwordExpired>false</passwordExpired><sandbox>false</sandbox><serverUrl>https://na3.salesforce.com/services/Soap/c/28.0/00D50000000IdrE</serverUrl><sessionId>00D50000000IdrE!AREAQK4VYXRaHoL_uRvOi.QXXw3ahAt2Cge254wygiW7cr_f6DVa2pDC6g57w5IEfidAu3ZRsJFBN5Bwb6DVhF18zKFiVVyT</sessionId><userId>00550000001Dd4uAAC</userId><userInfo><accessibilityMode>false</accessibilityMode><currencySymbol>$</currencySymbol><orgAttachmentFileSizeLimit>5242880</orgAttachmentFileSizeLimit><orgDefaultCurrencyIsoCode>USD</orgDefaultCurrencyIsoCode><orgDisallowHtmlAttachments>false</orgDisallowHtmlAttachments><orgHasPersonAccounts>false</orgHasPersonAccounts><organizationId>00D50000000IdrEEAS</organizationId><organizationMultiCurrency>false</organizationMultiCurrency><organizationName>3CLogic</organizationName><profileId>00e500000017al5AAA</profileId><roleId xsi:nil="true"/><sessionSecondsValid>7200</sessionSecondsValid><userDefaultCurrencyIsoCode xsi:nil="true"/><userEmail>ramana@3clogic.com</userEmail><userFullName>Ramana Reddy</userFullName><userId>00550000001Dd4uAAC</userId><userLanguage>en_US</userLanguage><userLocale>en_US</userLocale><userName>ramana@3clogic.com</userName><userTimeZone>America/New_York</userTimeZone><userType>Standard</userType><userUiSkin>Theme3</userUiSkin></userInfo></result></loginResponse></soapenv:Body></soapenv:Envelope>
XML;
say(" xml complete");
$sxe = new SimpleXMlElement($xml);
$sxe->registerXPathNamespace('soap', 'http://schemas.xmlsoap.org/soap/envelope/');
$path = $sxe->xpath('//soap:Body');
$path = $path[0] ;
foreach($path->getlocationsresponse->getlocationsresult->SearchLocations->children() as $table)
{
_log("ajay ". $table->sessionId . "<br>");
}
}
catch(Exception $e)
{
_log("errorfound".$e->getMessage());
}
?>
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 7.3.16 - 7.3.33 , 7.4.3 - 7.4.33 , 8.0.0 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.18 , 8.3.0 - 8.3.6 Fatal error: Uncaught Error: Call to undefined function say() in /in/K6QtX:2
Stack trace:
#0 {main}
thrown in /in/K6QtX on line 2
Process exited with code 255 . Output for 5.4.0 - 5.4.19 , 5.5.0 - 5.5.3 , 7.2.29 - 7.2.33 Parse error: syntax error, unexpected end of file in /in/K6QtX on line 22
Process exited with code 255 . Output for 5.3.0 - 5.3.27 Parse error: syntax error, unexpected $end in /in/K6QtX on line 22
Process exited with code 255 . preferences:dark mode live preview
146.56 ms | 401 KiB | 192 Q