Jump to content
TrinityCore

SOAP Error 401


Martos
 Share

Recommended Posts

HI all ! I have a problem with a SOAP client... When I send the commands, server response me with error 401. I have set gm level 3 -1 and rbac 219 (account create). The branch currently used is master.

Code in PHP :

<code>

protected $soap;

public function connect(){

    try {
        $soap = new \SoapClient(NULL, array(
            'location' => 'http://www.galaxyserver.ovh:7878/',
            "uri" => "urn:TC",
            'style' => SOAP_RPC,
            "trace"         => 1,
            "username" => "soap",
            "password" => "*****"
        ));
        $command = "account create test test";
        echo $result = $soap->executeCommand(new \SoapParam($command, 'command'));
    } catch (Exception $e) {
        print_r($e);
    }

}

</code>

Edited by Martos
  • Upvote 1
Link to comment
Share on other sites

Well, i had the same issue, in the config file of your soap, where soap username/ pass is you should put the credentials from an account created using the old command .account not the new one, first you need to turn on  worldserver.exe, then create an account using this command .account create username password(old fashion way please pay attention), then .account set gmlevel username 3 -1.

Edited by Skizooo
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...