Jump to content

Problem flushing arena points with SOAP


Guest Undergarun

Recommended Posts

I try to flush de arena points using SOAP with the following PHP script:

<?php
/*
* MaNGOSsoap client example
*
* a simple example how to invoke commands using SOAP
*/

$username = 'SOAP';
$password = '123456789';
$host = "xxx.xxx.xxx.xxx";
$soapport = 7878;
$command = "flusharenapoints";

$client = new SoapClient(NULL,
array(
   "location" => "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();
}
?>

SOAP account has access level 3 so is an administrator account but when i try to use it, the script returns: Command failed! Reason:

There is no such command

I try with lots of commands like "server info" "announce something" "server shutdown 300" "server shutdown cancel"... and all are executed successfully but with "flush" "flusharenapoints" "flusharenapoints 0" & "flusharenapoints 1" always get the same error!

Are there any problem flushing arena points using SOAP?

Thanks you

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use