Check Credentials PHP
Warranty Disclaimer
The Sample Code provided is supplied for demonstration purposes only. Please do not use the Sample Code in a production or public environment, it is for reference only. The Sample code is provided “as is,” without warranty of any kind. GBG offers no technical support for the Sample Code and is under no obligation to provide updates, fixes or additional releases to the Sample Code.
PHP Examples
Check Credentials
_____________________________________PHP__________________________________________ <?php $soap = new SoapClient("https://pilot.id3global.com/ID3gWS/ID3global.svc?wsdl", array('compression' => SOAP_COMPRESSION_ACCEPT, 'trace' => 1, 'cache_wsdl' => WSDL_CACHE_NONE)); $objParam = array('AccountName' =>'Account Name', 'Password' => 'Password'); if (is_soap_fault($soap)) { throw new Exception(" {$soap->faultcode}: {$soap->faultstring} "); } try { $objRet = $soap->CheckCredentials($objParam); echo '<pre>'; print"OrgID:".($objRet->CheckCredentialsResult->OrgID)."<br>"; print"AccountID :".($objRet->CheckCredentialsResult->AccountID)."<br>"; echo '</pre>'; // exit('PHPcode check ok'); } catch (Exception $e) { echo "<pre>"; print_r($e); echo "</pre>"; } if (is_soap_fault($objRet)) { throw new Expception(" {$objRet->faultcode}: {$objRet->faultstring} "); } ?> _____________________________________PHP__________________________________________