[Handle soap errors when replicating to remote ngnpro Adrian Georgescu **20081030191425 Renamed remote soap engines in all classes to be consistent ] hunk ./library/ngnpro_client.php 3477 - $this->SOAPloginEnumRemote = array( + $this->SOAPloginRemote = array( hunk ./library/ngnpro_client.php 3484 - //dprint_r($this->SOAPloginEnumRemote); - $this->SOAPurlEnumRemote=$this->SoapEngine->soapEngines[$enum_engine_remote]['url']; + //dprint_r($this->SOAPloginRemote); + $this->SOAPurlRemote=$this->SoapEngine->soapEngines[$enum_engine_remote]['url']; hunk ./library/ngnpro_client.php 3487 - $log=sprintf ("and syncronize changes to %s",$this->SOAPurlEnumRemote,$this->SOAPurlEnumRemote); + $log=sprintf ("and syncronize changes to %s",$this->SOAPurlRemote,$this->SOAPurlRemote); hunk ./library/ngnpro_client.php 3490 - $this->SoapAuthEnumRemote = array('auth', $this->SOAPloginEnumRemote , 'urn:AGProjects:NGNPro', 0, ''); + $this->SoapAuthRemote = array('auth', $this->SOAPloginRemote , 'urn:AGProjects:NGNPro', 0, ''); hunk ./library/ngnpro_client.php 3492 - $this->SoapEngineEnumRemote = new $this->SoapEngine->soap_class($this->SOAPurlEnumRemote); + $this->SoapEngineRemote = new $this->SoapEngine->soap_class($this->SOAPurlRemote); hunk ./library/ngnpro_client.php 3495 - $this->SoapEngineEnumRemote->_options['timeout'] = intval($this->soapEngines[$enum_engine_remote]['timeout']); + $this->SoapEngineRemote->_options['timeout'] = intval($this->soapEngines[$enum_engine_remote]['timeout']); hunk ./library/ngnpro_client.php 3497 - $this->SoapEngineEnumRemote->_options['timeout'] = $this->soapTimeout; + $this->SoapEngineRemote->_options['timeout'] = $this->soapTimeout; hunk ./library/ngnpro_client.php 3500 - $this->SoapEngineEnumRemote->setOpt('curl', CURLOPT_SSL_VERIFYPEER, 0); - $this->SoapEngineEnumRemote->setOpt('curl', CURLOPT_SSL_VERIFYHOST, 0); + $this->SoapEngineRemote->setOpt('curl', CURLOPT_SSL_VERIFYPEER, 0); + $this->SoapEngineRemote->setOpt('curl', CURLOPT_SSL_VERIFYHOST, 0); hunk ./library/ngnpro_client.php 3804 - if ($result = $this->SoapEngine->execute($function,$this->html)) { + $result = $this->SoapEngine->execute($function,$this->html); + + if (PEAR::isError($result)) { + $error_msg = $result->getMessage(); + $error_fault= $result->getFault(); + $error_code = $result->getCode(); + printf ("

Error from %s: %s (%s): %s",$this->SOAPurl,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); + + return false; + } else { hunk ./library/ngnpro_client.php 3815 - if (is_object($this->SoapEngineEnumRemote)) { - $this->SoapEngineEnumRemote->addHeader($this->SoapAuthEnumRemote); - $result = $this->SoapEngineEnumRemote->deleteRange($rangeId); + if (is_object($this->SoapEngineRemote)) { + $this->SoapEngineRemote->addHeader($this->SoapAuthRemote); + $result = $this->SoapEngineRemote->deleteRange($rangeId); hunk ./library/ngnpro_client.php 3823 - printf ("

Error from %s: %s (%s): %s",$this->SOAPurlEnumRemote,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); + printf ("

Error from %s: %s (%s): %s",$this->SOAPurlRemote,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); hunk ./library/ngnpro_client.php 3829 + } else { + return true; hunk ./library/ngnpro_client.php 3832 - - } else { - return false; hunk ./library/ngnpro_client.php 3956 - if ($result = $this->SoapEngine->execute($function,$this->html)) { - if (is_object($this->SoapEngineEnumRemote)) { - $this->SoapEngineEnumRemote->addHeader($this->SoapAuthEnumRemote); - $result = $this->SoapEngineEnumRemote->addRange($result); + $result = $this->SoapEngine->execute($function,$this->html); + + dprint_r($result); + if (PEAR::isError($result)) { + $error_msg = $result->getMessage(); + $error_fault= $result->getFault(); + $error_code = $result->getCode(); + printf ("

Error from %s: %s (%s): %s",$this->SOAPurl,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); + + return false; + } else { + + if (is_object($this->SoapEngineRemote)) { + $this->SoapEngineRemote->addHeader($this->SoapAuthRemote); + $result = $this->SoapEngineRemote->addRange($result); hunk ./library/ngnpro_client.php 3976 - printf ("

Error from %s: %s (%s): %s",$this->SOAPurlEnumRemote,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); + printf ("

Error from %s: %s (%s): %s",$this->SOAPurlRemote,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); hunk ./library/ngnpro_client.php 3983 + } else { + return true; hunk ./library/ngnpro_client.php 3986 - - } else { - return false; hunk ./library/ngnpro_client.php 4012 - // Insert credetials hunk ./library/ngnpro_client.php 4081 - dprint_r($range); hunk ./library/ngnpro_client.php 4256 - if ($result = $this->SoapEngine->execute($function,$this->html)) { + $result = $this->SoapEngine->execute($function,$this->html); + dprint_r($result); + + if (PEAR::isError($result)) { + $error_msg = $result->getMessage(); + $error_fault= $result->getFault(); + $error_code = $result->getCode(); + printf ("

Error from %s: %s (%s): %s",$this->SOAPurl,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); + + return false; + } else { + hunk ./library/ngnpro_client.php 4269 - if (is_object($this->SoapEngineEnumRemote)) { - $this->SoapEngineEnumRemote->addHeader($this->SoapAuthEnumRemote); - $result = $this->SoapEngineEnumRemote->updateRange($range); + if (is_object($this->SoapEngineRemote)) { + $this->SoapEngineRemote->addHeader($this->SoapAuthRemote); + $result = $this->SoapEngineRemote->updateRange($range); hunk ./library/ngnpro_client.php 4277 - printf ("

Error from %s: %s (%s): %s",$this->SOAPurlEnumRemote,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); + printf ("

Error from %s: %s (%s): %s",$this->SOAPurlRemote,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); hunk ./library/ngnpro_client.php 4282 + } else { + return true; hunk ./library/ngnpro_client.php 4285 - - } else { - return false; hunk ./library/ngnpro_client.php 4473 - $this->SOAPloginEnumRemote = array( + $this->SOAPloginRemote = array( hunk ./library/ngnpro_client.php 4480 - $this->SOAPurlEnumRemote=$this->SoapEngine->soapEngines[$enum_engine_remote]['url']; + $this->SOAPurlRemote=$this->SoapEngine->soapEngines[$enum_engine_remote]['url']; hunk ./library/ngnpro_client.php 4482 - $log=sprintf ("and syncronize changes to %s",$this->SOAPurlEnumRemote,$this->SOAPurlEnumRemote); + $log=sprintf ("and syncronize changes to %s",$this->SOAPurlRemote,$this->SOAPurlRemote); hunk ./library/ngnpro_client.php 4485 - $this->SoapAuthEnumRemote = array('auth', $this->SOAPloginEnumRemote , 'urn:AGProjects:NGNPro', 0, ''); + $this->SoapAuthRemote = array('auth', $this->SOAPloginRemote , 'urn:AGProjects:NGNPro', 0, ''); hunk ./library/ngnpro_client.php 4487 - $this->SoapEngineEnumRemote = new $this->SoapEngine->soap_class($this->SOAPurlEnumRemote); + $this->SoapEngineRemote = new $this->SoapEngine->soap_class($this->SOAPurlRemote); hunk ./library/ngnpro_client.php 4490 - $this->SoapEngineEnumRemote->_options['timeout'] = intval($this->soapEngines[$enum_engine_remote]['timeout']); + $this->SoapEngineRemote->_options['timeout'] = intval($this->soapEngines[$enum_engine_remote]['timeout']); hunk ./library/ngnpro_client.php 4492 - $this->SoapEngineEnumRemote->_options['timeout'] = $this->soapTimeout; + $this->SoapEngineRemote->_options['timeout'] = $this->soapTimeout; hunk ./library/ngnpro_client.php 4495 - $this->SoapEngineEnumRemote->setOpt('curl', CURLOPT_SSL_VERIFYPEER, 0); - $this->SoapEngineEnumRemote->setOpt('curl', CURLOPT_SSL_VERIFYHOST, 0); + $this->SoapEngineRemote->setOpt('curl', CURLOPT_SSL_VERIFYPEER, 0); + $this->SoapEngineRemote->setOpt('curl', CURLOPT_SSL_VERIFYHOST, 0); hunk ./library/ngnpro_client.php 5077 - if ($result = $this->SoapEngine->execute($function,$this->html)) { - + $result = $this->SoapEngine->execute($function,$this->html); + + if (PEAR::isError($result)) { + $error_msg = $result->getMessage(); + $error_fault= $result->getFault(); + $error_code = $result->getCode(); + printf ("

Error from %s: %s (%s): %s",$this->SOAPurl,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); + + return false; + } else { hunk ./library/ngnpro_client.php 5088 - if (is_object($this->SoapEngineEnumRemote)) { - $this->SoapEngineEnumRemote->addHeader($this->SoapAuthEnumRemote); - $result = $this->SoapEngineEnumRemote->updateNumber($result); + if (is_object($this->SoapEngineRemote)) { + $this->SoapEngineRemote->addHeader($this->SoapAuthRemote); + $result = $this->SoapEngineRemote->updateNumber($result); hunk ./library/ngnpro_client.php 5096 - printf ("

Error from %s: %s (%s): %s",$this->SoapEngineEnumRemote->SOAPurl,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); + printf ("

Error from %s: %s (%s): %s",$this->SoapEngineRemote->SOAPurl,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); hunk ./library/ngnpro_client.php 5102 + } else { + return true; hunk ./library/ngnpro_client.php 5105 - - } else { - return false; hunk ./library/ngnpro_client.php 5113 - if ($result = $this->SoapEngine->execute($function,$this->html)) { - + $result = $this->SoapEngine->execute($function,$this->html); + + if (PEAR::isError($result)) { + $error_msg = $result->getMessage(); + $error_fault= $result->getFault(); + $error_code = $result->getCode(); + printf ("

Error from %s: %s (%s): %s",$this->SOAPurl,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); + + return false; + } else { + hunk ./library/ngnpro_client.php 5125 - if (is_object($this->SoapEngineEnumRemote)) { - $this->SoapEngineEnumRemote->addHeader($this->SoapAuthEnumRemote); - $result = $this->SoapEngineEnumRemote->deleteNumber($enum_id); + if (is_object($this->SoapEngineRemote)) { + $this->SoapEngineRemote->addHeader($this->SoapAuthRemote); + $result = $this->SoapEngineRemote->deleteNumber($enum_id); hunk ./library/ngnpro_client.php 5133 - printf ("

Error from %s: %s (%s): %s",$this->SoapEngineEnumRemote->SOAPurl,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); + printf ("

Error from %s: %s (%s): %s",$this->SoapEngineRemote->SOAPurl,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); hunk ./library/ngnpro_client.php 5139 + } else { + return true; hunk ./library/ngnpro_client.php 5142 - - } else { - return false; hunk ./library/ngnpro_client.php 5143 - hunk ./library/ngnpro_client.php 5487 - if ($result = $this->SoapEngine->execute($function,$this->html)) { - + $result = $this->SoapEngine->execute($function,$this->html); + + if (PEAR::isError($result)) { + $error_msg = $result->getMessage(); + $error_fault= $result->getFault(); + $error_code = $result->getCode(); + printf ("

Error from %s: %s (%s): %s",$this->SOAPurl,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); + + return false; + } else { + hunk ./library/ngnpro_client.php 5499 - if (is_object($this->SoapEngineEnumRemote)) { - $this->SoapEngineEnumRemote->addHeader($this->SoapAuthEnumRemote); - $result = $this->SoapEngineEnumRemote->addNumber($result); + if (is_object($this->SoapEngineRemote)) { + $this->SoapEngineRemote->addHeader($this->SoapAuthRemote); + $result = $this->SoapEngineRemote->addNumber($result); hunk ./library/ngnpro_client.php 5507 - printf ("

Error from %s: %s (%s): %s",$this->SoapEngineEnumRemote->SOAPurl,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); + printf ("

Error from %s: %s (%s): %s",$this->SoapEngineRemote->SOAPurl,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); hunk ./library/ngnpro_client.php 5512 + } else { + return true; hunk ./library/ngnpro_client.php 5515 - - } else { - return false; hunk ./library/ngnpro_client.php 5551 - if ($result = $this->SoapEngine->execute($function,$this->html)) { + $result = $this->SoapEngine->execute($function,$this->html); + + if (PEAR::isError($result)) { + $error_msg = $result->getMessage(); + $error_fault= $result->getFault(); + $error_code = $result->getCode(); + printf ("

Error from %s: %s (%s): %s",$this->SOAPurl,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); + + return false; + } else { hunk ./library/ngnpro_client.php 5563 - if (is_object($this->SoapEngineEnumRemote)) { - $this->SoapEngineEnumRemote->addHeader($this->SoapAuthEnumRemote); - $result = $this->SoapEngineEnumRemote->updateNumber($result); + if (is_object($this->SoapEngineRemote)) { + $this->SoapEngineRemote->addHeader($this->SoapAuthRemote); + $result = $this->SoapEngineRemote->updateNumber($result); hunk ./library/ngnpro_client.php 5571 - printf ("

Error from %s: %s (%s): %s",$this->SoapEngineEnumRemote->SOAPurl,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); + printf ("

Error from %s: %s (%s): %s",$this->SoapEngineRemote->SOAPurl,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); hunk ./library/ngnpro_client.php 5576 + } else { + return true; hunk ./library/ngnpro_client.php 5579 - - } else { - return false; hunk ./library/ngnpro_client.php 5883 - if ($result = $this->SoapEngine->execute($function,$this->html)) { + $result = $this->SoapEngine->execute($function,$this->html); + + dprint_r($result) ; + if (PEAR::isError($result)) { + $error_msg = $result->getMessage(); + $error_fault= $result->getFault(); + $error_code = $result->getCode(); + printf ("

Error from %s: %s (%s): %s",$this->SOAPurl,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); + + return false; + } else { hunk ./library/ngnpro_client.php 5896 - if (is_object($this->SoapEngineEnumRemote)) { - $this->SoapEngineEnumRemote->addHeader($this->SoapAuthEnumRemote); - $result = $this->SoapEngineEnumRemote->updateNumber($result); + if (is_object($this->SoapEngineRemote)) { + $this->SoapEngineRemote->addHeader($this->SoapAuthRemote); + $result = $this->SoapEngineRemote->updateNumber($result); hunk ./library/ngnpro_client.php 5904 - printf ("

Error from %s: %s (%s): %s",$this->SoapEngineEnumRemote->SOAPurl,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); + printf ("

Error from %s: %s (%s): %s",$this->SoapEngineRemote->SOAPurl,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); hunk ./library/ngnpro_client.php 5909 + } else { + return true; hunk ./library/ngnpro_client.php 5912 - - } else { - return false; hunk ./library/ngnpro_client.php 5913 - hunk ./library/ngnpro_client.php 5978 - $this->SOAPloginDnsRemote = array( + $this->SOAPloginRemote = array( hunk ./library/ngnpro_client.php 5985 - $this->SOAPurlDnsRemote=$this->SoapEngine->soapEngines[$dns_engine_remote]['url']; + $this->SOAPurlRemote=$this->SoapEngine->soapEngines[$dns_engine_remote]['url']; hunk ./library/ngnpro_client.php 5987 - $log=sprintf ("and syncronize changes to %s",$this->SOAPurlDnsRemote,$this->SOAPurlDnsRemote); + $log=sprintf ("and syncronize changes to %s",$this->SOAPurlRemote,$this->SOAPurlRemote); hunk ./library/ngnpro_client.php 5990 - $this->SoapAuthDnsRemote = array('auth', $this->SOAPloginDnsRemote , 'urn:AGProjects:NGNPro', 0, ''); + $this->SoapAuthRemote = array('auth', $this->SOAPloginRemote , 'urn:AGProjects:NGNPro', 0, ''); hunk ./library/ngnpro_client.php 5992 - $this->SoapEngineDnsRemote = new $this->SoapEngine->soap_class($this->SOAPurlDnsRemote); + $this->SoapEngineRemote = new $this->SoapEngine->soap_class($this->SOAPurlRemote); hunk ./library/ngnpro_client.php 5995 - $this->SoapEngineDnsRemote->_options['timeout'] = intval($this->soapEngines[$dns_engine_remote]['timeout']); + $this->SoapEngineRemote->_options['timeout'] = intval($this->soapEngines[$dns_engine_remote]['timeout']); hunk ./library/ngnpro_client.php 5997 - $this->SoapEngineDnsRemote->_options['timeout'] = $this->soapTimeout; + $this->SoapEngineRemote->_options['timeout'] = $this->soapTimeout; hunk ./library/ngnpro_client.php 6000 - $this->SoapEngineDnsRemote->setOpt('curl', CURLOPT_SSL_VERIFYPEER, 0); - $this->SoapEngineDnsRemote->setOpt('curl', CURLOPT_SSL_VERIFYHOST, 0); + $this->SoapEngineRemote->setOpt('curl', CURLOPT_SSL_VERIFYPEER, 0); + $this->SoapEngineRemote->setOpt('curl', CURLOPT_SSL_VERIFYHOST, 0); hunk ./library/ngnpro_client.php 6217 - if ($result = $this->SoapEngine->execute($function,$this->html)) { - if (is_object($this->SoapEngineDnsRemote)) { - $this->SoapEngineDnsRemote->addHeader($this->SoapAuthDnsRemote); - $result = $this->SoapEngineDnsRemote->deleteZone($name); + $result = $this->SoapEngine->execute($function,$this->html); + + if (PEAR::isError($result)) { + $error_msg = $result->getMessage(); + $error_fault= $result->getFault(); + $error_code = $result->getCode(); + printf ("

Error from %s: %s (%s): %s",$this->SOAPurl,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); + + return false; + } else { + if (is_object($this->SoapEngineRemote)) { + $this->SoapEngineRemote->addHeader($this->SoapAuthRemote); + $result = $this->SoapEngineRemote->deleteZone($name); hunk ./library/ngnpro_client.php 6235 - printf ("

Error from %s: %s (%s): %s",$this->SOAPurlDnsRemote,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); + printf ("

Error from %s: %s (%s): %s",$this->SOAPurlRemote,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); hunk ./library/ngnpro_client.php 6240 + } else { + return true; hunk ./library/ngnpro_client.php 6243 - - } else { - return false; hunk ./library/ngnpro_client.php 6332 - if ($result = $this->SoapEngine->execute($function,$this->html)) { - if (is_object($this->SoapEngineDnsRemote)) { - $this->SoapEngineDnsRemote->addHeader($this->SoapAuthDnsRemote); - $result = $this->SoapEngineDnsRemote->addZone($zone); + $result = $this->SoapEngine->execute($function,$this->html); + dprint_r($result); + + if (PEAR::isError($result)) { + $error_msg = $result->getMessage(); + $error_fault= $result->getFault(); + $error_code = $result->getCode(); + printf ("

Error from %s: %s (%s): %s",$this->SOAPurl,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); + + return false; + } else { + + if (is_object($this->SoapEngineRemote)) { + $this->SoapEngineRemote->addHeader($this->SoapAuthRemote); + $result = $this->SoapEngineRemote->addZone($zone); hunk ./library/ngnpro_client.php 6352 - printf ("

Error from %s: %s (%s): %s",$this->SOAPurlDnsRemote,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); + printf ("

Error from %s: %s (%s): %s",$this->SOAPurlRemote,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); hunk ./library/ngnpro_client.php 6359 + } else { + return true; hunk ./library/ngnpro_client.php 6362 - - } else { - return false; hunk ./library/ngnpro_client.php 6545 - if ($result = $this->SoapEngine->execute($function,$this->html)) { - if (is_object($this->SoapEngineDnsRemote)) { - $this->SoapEngineDnsRemote->addHeader($this->SoapAuthDnsRemote); - $result = $this->SoapEngineDnsRemote->updateZone($zone); + $result = $this->SoapEngine->execute($function,$this->html); + + dprint_r($result); + + if (PEAR::isError($result)) { + $error_msg = $result->getMessage(); + $error_fault= $result->getFault(); + $error_code = $result->getCode(); + printf ("

Error from %s: %s (%s): %s",$this->SOAPurl,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); + + return false; + } else { + if (is_object($this->SoapEngineRemote)) { + $this->SoapEngineRemote->addHeader($this->SoapAuthRemote); + $result = $this->SoapEngineRemote->updateZone($zone); hunk ./library/ngnpro_client.php 6565 - printf ("

Error from %s: %s (%s): %s",$this->SOAPurlDnsRemote,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); + printf ("

Error from %s: %s (%s): %s",$this->SOAPurlRemote,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); hunk ./library/ngnpro_client.php 6572 + } else { + return true; hunk ./library/ngnpro_client.php 6575 - } else { - return false; hunk ./library/ngnpro_client.php 6935 - $this->SOAPloginDnsRemote = array( + $this->SOAPloginRemote = array( hunk ./library/ngnpro_client.php 6942 - $this->SOAPurlDnsRemote=$this->SoapEngine->soapEngines[$dns_engine_remote]['url']; + $this->SOAPurlRemote=$this->SoapEngine->soapEngines[$dns_engine_remote]['url']; hunk ./library/ngnpro_client.php 6944 - $log=sprintf ("and syncronize changes to %s",$this->SOAPurlDnsRemote,$this->SOAPurlDnsRemote); + $log=sprintf ("and syncronize changes to %s",$this->SOAPurlRemote,$this->SOAPurlRemote); hunk ./library/ngnpro_client.php 6947 - $this->SoapAuthDnsRemote = array('auth', $this->SOAPloginDnsRemote , 'urn:AGProjects:NGNPro', 0, ''); + $this->SoapAuthRemote = array('auth', $this->SOAPloginRemote , 'urn:AGProjects:NGNPro', 0, ''); hunk ./library/ngnpro_client.php 6949 - $this->SoapEngineDnsRemote = new $this->SoapEngine->soap_class($this->SOAPurlDnsRemote); + $this->SoapEngineRemote = new $this->SoapEngine->soap_class($this->SOAPurlRemote); hunk ./library/ngnpro_client.php 6952 - $this->SoapEngineDnsRemote->_options['timeout'] = intval($this->soapEngines[$dns_engine_remote]['timeout']); + $this->SoapEngineRemote->_options['timeout'] = intval($this->soapEngines[$dns_engine_remote]['timeout']); hunk ./library/ngnpro_client.php 6954 - $this->SoapEngineDnsRemote->_options['timeout'] = $this->soapTimeout; + $this->SoapEngineRemote->_options['timeout'] = $this->soapTimeout; hunk ./library/ngnpro_client.php 6957 - $this->SoapEngineDnsRemote->setOpt('curl', CURLOPT_SSL_VERIFYPEER, 0); - $this->SoapEngineDnsRemote->setOpt('curl', CURLOPT_SSL_VERIFYHOST, 0); + $this->SoapEngineRemote->setOpt('curl', CURLOPT_SSL_VERIFYPEER, 0); + $this->SoapEngineRemote->setOpt('curl', CURLOPT_SSL_VERIFYHOST, 0); hunk ./library/ngnpro_client.php 7284 - return $this->SoapEngine->execute($function,$this->html); + $result = $this->SoapEngine->execute($function,$this->html); + + if (PEAR::isError($result)) { + $error_msg = $result->getMessage(); + $error_fault= $result->getFault(); + $error_code = $result->getCode(); + printf ("

Error from %s: %s (%s): %s",$this->SOAPurl,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); + + return false; + } else { + if (is_object($this->SoapEngineRemote)) { + $this->SoapEngineRemote->addHeader($this->SoapAuthRemote); + $result = call_user_func_array(array(&$this->SoapEngineRemote,$this->deleteRecordFunction),array($result)); + + if (PEAR::isError($result)) { + $error_msg = $result->getMessage(); + $error_fault= $result->getFault(); + $error_code = $result->getCode(); + printf ("

Error from %s: %s (%s): %s",$this->SOAPurlRemote,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); + unset($this->filters); + } + } else { + return true; + } + } + hunk ./library/ngnpro_client.php 7552 - if ($result = $this->SoapEngine->execute($function,$this->html)) { - if (is_object($this->SoapEngineDnsRemote)) { - $this->SoapEngineDnsRemote->addHeader($this->SoapAuthDnsRemote); + $result = $this->SoapEngine->execute($function,$this->html); + dprint_r($result); hunk ./library/ngnpro_client.php 7555 - if ($this->addRecordFunction == 'addRecord') { - $result = $this->SoapEngineDnsRemote->addRecord($result); - } else if ($this->addRecordFunction == 'addRecordFancy') { - $result = $this->SoapEngineDnsRemote->addRecordFancy($result); - } + if (PEAR::isError($result)) { + $error_msg = $result->getMessage(); + $error_fault= $result->getFault(); + $error_code = $result->getCode(); + printf ("

Error from %s: %s (%s): %s",$this->SOAPurl,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); hunk ./library/ngnpro_client.php 7561 + return false; + } else { + if (is_object($this->SoapEngineRemote)) { + $this->SoapEngineRemote->addHeader($this->SoapAuthRemote); + $result = call_user_func_array(array(&$this->SoapEngineRemote,$this->addRecordFunction),array($result)); + hunk ./library/ngnpro_client.php 7571 - printf ("

Error from %s: %s (%s): %s",$this->SOAPurlDnsRemote,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); + printf ("

Error from %s: %s (%s): %s",$this->SOAPurlRemote,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); hunk ./library/ngnpro_client.php 7578 + } else { + return true; hunk ./library/ngnpro_client.php 7581 - - } else { - return false; hunk ./library/ngnpro_client.php 7647 - if ($result = $this->SoapEngine->execute($function,$this->html)) { - if (is_object($this->SoapEngineDnsRemote)) { - $this->SoapEngineDnsRemote->addHeader($this->SoapAuthDnsRemote); - $result = $this->SoapEngineDnsRemote->addRecord($result); - + $result = $this->SoapEngine->execute($function,$this->html); + dprint_r($result); + + if (PEAR::isError($result)) { + $error_msg = $result->getMessage(); + $error_fault= $result->getFault(); + $error_code = $result->getCode(); + printf ("

Error from %s: %s (%s): %s",$this->SOAPurl,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); + + return false; + } else { + if (is_object($this->SoapEngineRemote)) { + $this->SoapEngineRemote->addHeader($this->SoapAuthRemote); + + $result = call_user_func_array(array(&$this->SoapEngineRemote,$this->addRecordFunction),array($result)); + hunk ./library/ngnpro_client.php 7667 - printf ("

Error from %s: %s (%s): %s",$this->SOAPurlDnsRemote,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); + printf ("

Error from %s: %s (%s): %s",$this->SOAPurlRemote,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); hunk ./library/ngnpro_client.php 7670 + } else { + return true; hunk ./library/ngnpro_client.php 7673 - hunk ./library/ngnpro_client.php 7674 - hunk ./library/ngnpro_client.php 7888 - - if ($result = $this->SoapEngine->execute($function,$this->html)) { - if (is_object($this->SoapEngineDnsRemote)) { - $this->SoapEngineDnsRemote->addHeader($this->SoapAuthDnsRemote); - if ($this->updateRecordFunction == 'updateRecord') { - $result = $this->SoapEngineDnsRemote->updateRecord($result); - } else if ($this->updateRecordFunction == 'updateRecordFancy') { - $result = $this->SoapEngineDnsRemote->updateRecordFancy($result); - } + + $result = $this->SoapEngine->execute($function,$this->html); + dprint_r($result); + + if (PEAR::isError($result)) { + $error_msg = $result->getMessage(); + $error_fault= $result->getFault(); + $error_code = $result->getCode(); + printf ("

Error from %s: %s (%s): %s",$this->SOAPurl,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); + + return false; + } else { + if (is_object($this->SoapEngineRemote)) { + $this->SoapEngineRemote->addHeader($this->SoapAuthRemote); + + $result = call_user_func_array(array(&$this->SoapEngineRemote,$this->updateRecordFunction),array($result)); hunk ./library/ngnpro_client.php 7909 - printf ("

Error from %s: %s (%s): %s",$this->SOAPurlDnsRemote,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); + printf ("

Error from %s: %s (%s): %s",$this->SOAPurlRemote,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); hunk ./library/ngnpro_client.php 7916 + } else { + return true; hunk ./library/ngnpro_client.php 7919 - - } else { - return false; hunk ./library/ngnpro_client.php 9908 - $this->SOAPloginCustomerRemote = array( + $this->SOAPloginRemote = array( hunk ./library/ngnpro_client.php 9915 - //dprint_r($this->SOAPloginCustomerRemote); - $this->SOAPurlCustomerRemote=$this->SoapEngine->soapEngines[$customer_engine_remote]['url']; + //dprint_r($this->SOAPloginRemote); + $this->SOAPurlRemote=$this->SoapEngine->soapEngines[$customer_engine_remote]['url']; hunk ./library/ngnpro_client.php 9918 - $log=sprintf ("and syncronize changes to %s",$this->SOAPurlCustomerRemote,$this->SOAPurlCustomerRemote); + $log=sprintf ("and syncronize changes to %s",$this->SOAPurlRemote,$this->SOAPurlRemote); hunk ./library/ngnpro_client.php 9921 - $this->SoapAuthCustomerRemote = array('auth', $this->SOAPloginCustomerRemote , 'urn:AGProjects:NGNPro', 0, ''); + $this->SoapAuthRemote = array('auth', $this->SOAPloginRemote , 'urn:AGProjects:NGNPro', 0, ''); hunk ./library/ngnpro_client.php 9923 - $this->SoapEngineCustomerRemote = new $this->SoapEngine->soap_class($this->SOAPurlCustomerRemote); + $this->SoapEngineRemote = new $this->SoapEngine->soap_class($this->SOAPurlRemote); hunk ./library/ngnpro_client.php 9926 - $this->SoapEngineCustomerRemote->_options['timeout'] = intval($this->soapEngines[$customer_engine_remote]['timeout']); + $this->SoapEngineRemote->_options['timeout'] = intval($this->soapEngines[$customer_engine_remote]['timeout']); hunk ./library/ngnpro_client.php 9928 - $this->SoapEngineCustomerRemote->_options['timeout'] = $this->soapTimeout; + $this->SoapEngineRemote->_options['timeout'] = $this->soapTimeout; hunk ./library/ngnpro_client.php 9931 - $this->SoapEngineCustomerRemote->setOpt('curl', CURLOPT_SSL_VERIFYPEER, 0); - $this->SoapEngineCustomerRemote->setOpt('curl', CURLOPT_SSL_VERIFYHOST, 0); + $this->SoapEngineRemote->setOpt('curl', CURLOPT_SSL_VERIFYPEER, 0); + $this->SoapEngineRemote->setOpt('curl', CURLOPT_SSL_VERIFYHOST, 0); hunk ./library/ngnpro_client.php 10238 - if (is_object($this->SoapEngineCustomerRemote)) { + if (is_object($this->SoapEngineRemote)) { hunk ./library/ngnpro_client.php 10240 - $this->SoapEngineCustomerRemote->addHeader($this->SoapAuthCustomerRemote); - $result = $this->SoapEngineCustomerRemote->deleteAccount(intval($this->filters['customer'])); + $this->SoapEngineRemote->addHeader($this->SoapAuthRemote); + $result = $this->SoapEngineRemote->deleteAccount(intval($this->filters['customer'])); hunk ./library/ngnpro_client.php 10248 - printf ("

Error from %s: %s (%s): %s",$this->SOAPurlCustomerRemote,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); + printf ("

Error from %s: %s (%s): %s",$this->SOAPurlRemote,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); hunk ./library/ngnpro_client.php 10904 - if (is_object($this->SoapEngineCustomerRemote)) { + if (is_object($this->SoapEngineRemote)) { hunk ./library/ngnpro_client.php 10906 - $this->SoapEngineCustomerRemote->addHeader($this->SoapAuthCustomerRemote); - $result = $this->SoapEngineCustomerRemote->updateAccount($customer); + $this->SoapEngineRemote->addHeader($this->SoapAuthRemote); + $result = $this->SoapEngineRemote->updateAccount($customer); hunk ./library/ngnpro_client.php 10915 - printf ("

Error from %s: %s (%s): %s",$this->SOAPurlCustomerRemote,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); + printf ("

Error from %s: %s (%s): %s",$this->SOAPurlRemote,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); hunk ./library/ngnpro_client.php 11054 - if (is_object($this->SoapEngineCustomerRemote)) { + if (is_object($this->SoapEngineRemote)) { hunk ./library/ngnpro_client.php 11060 - $this->SoapEngineCustomerRemote->addHeader($this->SoapAuthCustomerRemote); - $result = $this->SoapEngineCustomerRemote->addAccount($customerRemote); + $this->SoapEngineRemote->addHeader($this->SoapAuthRemote); + $result = $this->SoapEngineRemote->addAccount($customerRemote); hunk ./library/ngnpro_client.php 11067 - printf ("

Error from %s: %s (%s): %s",$this->SOAPurlCustomerRemote,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); + printf ("

Error from %s: %s (%s): %s",$this->SOAPurlRemote,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); hunk ./library/ngnpro_client.php 11334 - if (is_object($this->SoapEngineCustomerRemote)) { + if (is_object($this->SoapEngineRemote)) { hunk ./library/ngnpro_client.php 11339 - $this->SoapEngineCustomerRemote->addHeader($this->SoapAuthCustomerRemote); - $result = $this->SoapEngineCustomerRemote->addAccount($customerRemote); + $this->SoapEngineRemote->addHeader($this->SoapAuthRemote); + $result = $this->SoapEngineRemote->addAccount($customerRemote); hunk ./library/ngnpro_client.php 11346 - printf ("

Error from %s: %s (%s): %s",$this->SOAPurlCustomerRemote,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring); + printf ("

Error from %s: %s (%s): %s",$this->SOAPurlRemote,$error_msg, $error_fault->detail->exception->errorcode,$error_fault->detail->exception->errorstring);