public function forward_common($data) { if (!$data) { return false; } $xml = $this->_common_xml($data); try { $cilentOptions = array('trace' => true, 'exceptions' => true, 'cache_wsdl' => WSDL_CACHE_NONE); $client = new SoapClient(WEB_URL, $cilentOptions); //echo $xml;exit(); $ret_str = $client->InsertCaseInfo_GGFW(array('xmlCaseInfo' => $xml)); $ret_str = $ret_str->InsertCaseInfo_GGFWResult; $ret_str = xml2Array($ret_str); if (!$ret_str['DATA']['ReturnInfo']['Status']) { $this->failed_data($data['id']); return false; } } catch (SoapFault $fault) { $this->failed_data($data['id']); return false; //echo "Error: ",$fault->faultcode,", string: ",$fault->faultstring;exit(); } return true; }