多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
[TOC] ## 接口说明 ### 获取WebServer函数与参数 ``` $url = "http://xxx/common/webService/service.php?wsdl"; //末尾加 wsdl $client = new SoapClient($url, array('trace' => 1)); $client->__getFunctions(); /** Array ( ... [7] => string editScheduleMeetingInfo(string $siteKey, string $sitePwd, integer $meetingId, string $option) [8] => string getMeetingAttendenceList(string $siteKey, string $sitePwd, integer $meetingId, string $option) [9] => string getMeetingIdByUserId(string $siteKey, string $sitePwd, string $userId, string $option) [10] => string getMeetingInfo(string $siteKey, string $sitePwd, integer $meetingId, string $option) ... */ ``` ### 调用方法 ``` $devKey = " xxx"; $password = "xxxx"; $url = "http://xxx/common/webService/service.php?wsdl"; $meetingId="xxxx"; $client = new SoapClient($url, array('trace' => 1)); //如果出现异常 PHP Fatal error: Uncaught SoapFault exception: [HTTP] Could not connect to host $client->__setLocation($url); //调用接口 ,通过 __getFunctions 可看到那些方法可以调用 $result = $client->getMeetingInfo($devKey, $password, $meetingId); print_r($result); /* <?xml version='1.0' encoding='utf-8'?><TbMeetingResult>..</TbMeetingResult>% * */ ```