Example #1
0
 public function people_show($offset, $count)
 {
     $xml = '<?xml version="1.0" encoding="utf-8"?>';
     $xml .= '<paras>';
     $xml .= '<IdentityGuid>Epoint_WebSerivce_**##0601</IdentityGuid>';
     $xml .= '<SearchDateFrom></SearchDateFrom>';
     $xml .= '<SearchDateTo></SearchDateTo>';
     $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->SelectBMZXList(array('xmlWebInfo' => $xml));
     var_dump($ret_str);
     exit;
 }
Example #2
0
 public function count($condition = array())
 {
     $total = 0;
     $pagesize = 1;
     $currentpage = 1;
     $xml = $this->rdwd_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->SelectBMZXList(array('xmlWebInfo' => $xml));
     $ret_str = $ret_str->SelectBMZXListResult;
     $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;
 }