2017-09-07 2 views
0
내가 코드 불구하고 갔다 GitHub의에서 일부 샘플 코드 ( https://github.com/kielerrr/Five9)를 가지고 그리고 난 API에 자격 증명을 전달하지만 난 다음 오류를

API를 통해 Five9 로그인하는 방법

"치명적인 오류가 발생 Five9에

임 새로운 : C : \ xampp \ htdocs \ Five9-Master \ includes \ Five9.php : 20 스택 추적 : # 0 C : \ xampp \ htdocs \ Five9-master \ contacts \ getContactRecords.php (' 12) : F9 -> __ 구조() # 1 {주} C에 던져 : \ XAMPP \ \ Five9 마스터 \는 라인 (20)에 \ Five9.php을 포함한다 "

$wsdl_five9 = "https://api.five9.com/wsadmin/v4/AdminWebService?wsdl&user=User_ID"; 
    //$wsdl_five9 = "https://api.five9.com/wsadmin/v4/AdminWebService?wsdl"; 
    try { 
     $soap_options = array('login' => 'uer_name', 'password' => 'mypassword', 'trace' => true); 
     $this->_connection = new SoapClient($wsdl_five9, $soap_options);//20th line 
    } catch (Exception $e) { 
     $error_message = $e->getMessage(); 
     echo $error_message."ERROR"; 
     exit; 
    } 

이 통과하도록 도와주세요 htdocs에 ...

+0

[치명적인 오류 : Class 'SoapClient'not found] (https://stackoverflow.com/questions/11391442/fatal-error-class-soapclient-not-found) 가능한 복제본 –

+0

예를 들어 비누 확장을 활성화해야합니다. 내 시스템 PHP는 –

답변

0

위의 코드는 시스템에서 비누를 사용하도록 설정해야합니다. php.ini 파일을 찾고 주석 제거 (비누 확장 전에 세미콜론을 제거하십시오). 변경 : "; extension = php_soap.dl" to : "extension = php_soap.dll".

관련 문제