Skip to content
Advertisement

How to send commands using SOAP to AzerothCore worldserver console?

How can I run a command after enabling SOAP to AzerothCore worldserver console?

Advertisement

Answer

First of all, you have to put on worldserver.conf these parameters to enable SOAP:

JavaScript

Afterwards, run your worldserver.

You can use a simple PHP script to run a command to the AzerothCore console like the following,

If you don’t have php-soap, on Linux Ubuntu you can install it using sudo apt install php-soap (or php7.2-soap).

JavaScript

In the last line you have to change "account_name", "account_password" using an account with gm level 3.

echo RemoteCommandWithSOAP($soap_connection_info['account_name'], $soap_connection_info['account_password'], ".server info");

You can replace .server info with any command.

Note: this works with other emulators just replacing urn:AC with:
urn:MaNGOS for CMaNGOS (and related forks)
urn:TC for TrinityCore
urn:SF for SkyfireProject
urn:Oregon for OregonCore
etc…

User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement