A SOAP Client with Error Handling : SOAP Client « Network « PHP






A SOAP Client with Error Handling

 
<?php
  ini_set('soap.wsdl_cache_enabled', 'Off');

  $soap = new SoapClient('guid.wsdl');

  try {
    echo $soap->getGuid('PHP_');
  } catch (SoapFault $ex) {
    echo $ex->faultstring;
  }
?>
  
  








Related examples in the same category

1.A SOAP Client for the getGuid() Method