The SOAP Server for the getGuid() Method : SOAP Server « Network « PHP






The SOAP Server for the getGuid() Method

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

  function getGuid($prefix) {
    return uniqid($prefix);
  }

  $soap = new SoapServer('guid.wsdl');
  $soap->addFunction('getGuid');
  $soap->handle();
?>
  
  








Related examples in the same category

1.The SOAP Server Returns an Error if No Prefix Is Provided
2.Start soap server