1
SOAP API를 사용하는 방법에 관한 몇 가지 게시물을 보았습니다. 본격적인 인증을받을 수없는 것 같습니다. 단지 다음 메시지가 나타납니다. SOAP 오류 : 로그인에 실패했습니다. 사용자 이름 또는 암호가 잘못되었습니다SOAPconfig on ISPconfig 3
사용자/암호 세부 정보는 정확하지만 더 자세한 설명이 포함 된 오류 메시지는 관리 할 수 없습니다.
<?php
$username = 'admin';
$password = 'password';
$soap_location = 'https://test.uk:8080/remote/index.php';
$soap_uri = 'https://test.uk:8080/remote/';
$client = new SoapClient(null, array('location' => $soap_location, 'uri' => $soap_uri));
try {
//* Login to the remote server
if($session_id = $client->login($username,$password)) {
echo 'Logged into remote server successfully. The SessionID is '.$session_id.'';
}
//* Logout
if($client->logout($session_id)) {
echo "FTP Created";
}
} catch (SoapFault $e) {
die('SOAP Error: '.$e->getMessage());
echo "Please contact the server administator";
}
?>