__setLocation("http://106.12.158.247:8091"); print_r($client->SelectRecordServerInfo()); $client2 = new SoapClient("http://124.205.140.5:8092/?wsdl"); $client2->__setLocation("http://124.205.140.5:8092"); print_r($client2->__getFunctions()); print_r($client2->GetRecords2('2017-01-01 00:00:00','2021-05-30 00:00:00',-1,-1,'',0,-1,1,100,1,-1,'')); */ try { //http://106.12.158.247/records/60BBCC94-6F7D-48E3-8559-7A2A19479AC3_1.mp4 $client = new SoapClient($config['url']."/?wsdl"); $client->__setLocation($config['url']); $pageindex = isset($_GET['pageindex']) ? intval($_GET['pageindex']) : 1; $pagesize = isset($_GET['pagesize']) ? intval($_GET['pagesize']) : 100; $begintime = isset($_GET['begintime']) ? $_GET['begintime'] : ''; $endtime = isset($_GET['endtime']) ? $_GET['endtime'] : ''; $number = isset($_GET['number']) ? $_GET['number'] : ''; $means = isset($_GET['means']) ? $_GET['means'] : ''; $planno = isset($_GET['planno']) ? $_GET['planno'] : ''; //todo 预案号 $result = array(); $result = $client->SelectPlanLogInfo($pageindex, $pagesize, $begintime, $endtime, $number, $means, $planno); echo json_encode($result); //var_dump($client->SelectCallRecord(0,100,'2017-01-01 00:00:00','2021-01-30 00:00:00',10,10000000,'5000',-1,-1)); // print_r($client->__getFunctions()); // print_r($client->__getTypes()); } catch (SOAPFault $e) { // print $e; echo json_encode(array("error" => 502, "desc" => "WebService服务故障")); return; } ?>