wenn ich mich über die SOAP xml api verbinden möchte, bekomme ich immer diese login failed meldung.
login_failedThe login failed. Username or password wrong. SOAP Error: The login failed. Username or password wrong.
da das system womit ich entwickle ein testsystem ist, ist der username admin mit dem passwort admin vorhanden.
$username = 'admin';
$password = 'admin';
$soap_location = 'http://188.246.9.50/remote/index.php';
$soap_uri = 'http://188.246.9.50/remote/'
$client = new SoapClient(null, array('location' => $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username,$password)) {
echo 'Logged successfull. Session ID:'.$session_id.'<br />';
}
//* Set the function parameters.
$var_client_id = 1;
$client_record = $client->client_get($session_id, $var_client_id);
print_r($client_record);
if($client->logout($session_id)) {
echo 'Logged out.<br />';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}
login_failedThe login failed. Username or password wrong. SOAP Error: The login failed. Username or password wrong.
da das system womit ich entwickle ein testsystem ist, ist der username admin mit dem passwort admin vorhanden.
$username = 'admin';
$password = 'admin';
$soap_location = 'http://188.246.9.50/remote/index.php';
$soap_uri = 'http://188.246.9.50/remote/'
$client = new SoapClient(null, array('location' => $soap_location,
'uri' => $soap_uri,
'trace' => 1,
'exceptions' => 1));
try {
if($session_id = $client->login($username,$password)) {
echo 'Logged successfull. Session ID:'.$session_id.'<br />';
}
//* Set the function parameters.
$var_client_id = 1;
$client_record = $client->client_get($session_id, $var_client_id);
print_r($client_record);
if($client->logout($session_id)) {
echo 'Logged out.<br />';
}
} catch (SoapFault $e) {
echo $client->__getLastResponse();
die('SOAP Error: '.$e->getMessage());
}