$this->client = new SoapClient($url."webapi/soap?wsdl"); $obj = new stdClass(); $obj->username = "email@admin.pl"; $obj->password = "zasq12wsx"; try { [b]$result = $this->client->doLogin($obj);[/b] } catch (Exception $e) { } $t = $this->client->__getLastResponse(); $this->hash = $result->hash;
następnie tworzę wywołanie kolejnej funkcji :
$this->client = new SoapClient($url."user/soap?wsdl"); $obj =new stdClass; $obj->_offset= 1; $obj->_limit = 10 ; $obj->_session_hash = $this->hash; $result = $this->client->__call("GetUserList",$obj);
Pewnie zauważalna jest zmiana adresu url Webserwisu API - SOTE pogrupował funkcje i nadał inne linki. Próbowałem wykonywać funkcję także bez używania __call
wynik ten sam: DTD are not supported by SOAP.
$result = $this->client->GetUserList($obj);
Dokumentacja API SOTE: http://www.wiki.sote.pl/trac/wiki/doc/stWebapiPlugin, Wersja PHP: 5.4.7.
Proszę o pomoc. Pozdrawiam!