Martos Posted January 9, 2017 Report Share Posted January 9, 2017 (edited) 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 January 9, 2017 by Martos 1 Link to comment Share on other sites More sharing options...
CDawg Posted January 9, 2017 Report Share Posted January 9, 2017 is SOAP enabled? look at your worldserver.conf Link to comment Share on other sites More sharing options...
Aokromes Posted January 9, 2017 Report Share Posted January 9, 2017 it's more account don't have proper permisions. Link to comment Share on other sites More sharing options...
Martos Posted January 9, 2017 Author Report Share Posted January 9, 2017 SOAP is enabled on worldserver.conf. How can i set a proper permissions ? Link to comment Share on other sites More sharing options...
Skizooo Posted January 15, 2017 Report Share Posted January 15, 2017 (edited) 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 January 15, 2017 by Skizooo Link to comment Share on other sites More sharing options...
Martos Posted January 15, 2017 Author Report Share Posted January 15, 2017 On 9/1/2017 at 3:30 PM, Martos said: password I have created the account with .account create soap password end I set the permission with .account set gmlevel soap 3 -1 but return me 401 ... Unauthorized Link to comment Share on other sites More sharing options...
Recommended Posts