Example #1
0
 public function service_self($offset, $count, $tel = '', $password = '')
 {
     $xml = '<?xml version="1.0" encoding="utf-8"?>';
     $xml .= '<paras>';
     $xml .= '<IdentityGuid>Epoint_WebSerivce_**##0601</IdentityGuid>';
     $xml .= '<RequestNumber>' . $tel . '</RequestNumber>';
     $xml .= '<RequestAddress></RequestAddress>';
     $xml .= '<Address></Address>';
     $xml .= '<RequestTitle></RequestTitle>';
     $xml .= '<SearchDateFrom></SearchDateFrom>';
     $xml .= '<SearchDateTo></SearchDateTo>';
     $xml .= '<RequestPassWord>' . $password . '</RequestPassWord>';
     $xml .= '<PageSize>10</PageSize>';
     $xml .= '<CurrentPageIndex>1</CurrentPageIndex>';
     $xml .= '</paras>';
     $cilentOptions = array('trace' => true, 'exceptions' => true, 'cache_wsdl' => WSDL_CACHE_NONE);
     $client = new SoapClient(WEB_URL, $cilentOptions);
     //echo $xml;exit();
     $ret_str = $client->SelectCaseInfoList(array('xmlCaseInfo' => $xml));
     $ret_str = $ret_str->SelectCaseInfoListResult;
     $ret_str = xml2Array($ret_str);
     if (!$ret_str['EpointDataBody']['DATA']['ReturnInfo']['Status']) {
         return false;
     }
     $data = $ret_str['EpointDataBody']['DATA']['UserArea'];
     $Page = $ret_str['EpointDataBody']['DATA']['PageInfo'];
     $arr = array();
     $pageInfo = var_dump($ret_str);
     exit;
 }
Example #2
0
 public function count($condition = array())
 {
     $total = 0;
     $pagesize = 1;
     $currentpage = 1;
     $xml = $this->bmfw_xml($condition, $pagesize, $currentpage);
     $cilentOptions = array('trace' => true, 'exceptions' => true, 'cache_wsdl' => WSDL_CACHE_NONE);
     $client = new SoapClient(WEB_URL, $cilentOptions);
     //echo $xml;exit();
     $ret_str = $client->SelectCaseInfoList(array('xmlCaseInfo' => $xml));
     $ret_str = $ret_str->SelectCaseInfoListResult;
     $ret_str = xml2Array($ret_str);
     //hg_pre($ret_str);exit();
     if (!$ret_str['DATA']['ReturnInfo']['Status']) {
         return $total;
     }
     $Page = $ret_str['DATA']['PageInfo'];
     $total = $Page['TotalNumCount'];
     return $total;
 }