"http://$host:$soapport/",
"uri" => "urn:MaNGOS",
"style" => SOAP_RPC,
'login' => $username,
'password' => $password
));
try {
$result = $client->executeCommand(new SoapParam($command, "command"));
echo "Command succeeded! Output:
\n";
echo $result;
}
catch (Exception $e)
{
echo "Command failed! Reason:
\n";
echo $e->getMessage();
}