public function __construct($url) { $this->soapURL = $url; ini_set("soap.wsdl_cache_enabled", "0"); // disabling WSDL cache global $HTTP_RAW_POST_DATA; if (!isset($HTTP_RAW_POST_DATA)) { $HTTP_RAW_POST_DATA = file_get_contents('php://input'); } parent::__construct(); }
/** * 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'); }