/** * This is the constructor. It creates an instance of NUSOAP server. * * @param String $url - This is the soap URL * @access public */ public function __construct($url) { $GLOBALS['log']->info('Begin: NusoapSoap->__construct'); $this->server = new soap_server(); $this->soapURL = $url; $this->server->configureWSDL('sugarsoap', $this->getNameSpace(), $url); if (!isset($GLOBALS['HTTP_RAW_POST_DATA'])) { $GLOBALS['HTTP_RAW_POST_DATA'] = file_get_contents('php://input'); } parent::__construct(); $GLOBALS['log']->info('End: NusoapSoap->__construct'); }
public function registerImplClass($implementationClass) { if (empty($implementationClass)) { $implementationClass = $this->implementationClass; } // if $this->generateSoapServer(); $this->server->setClass($implementationClass); parent::setObservers(); }