by GPN Web Developer.
Hi,
The SOAP response is "Function ("core_user_create_users") is not a valid method for this service" however the user has all capabilities and is in Manager role.
I have tried creating another external service and adding the query parameter "service" with the short name and WSDL still doesn't return "core_user_create_users" as a valid SOAP operation?
Please help. As we cannot use the API at all.
protected function call($function_name, array $function_params)
{
if (! $this->soapEndpoint)
$this->soapEndpoint = $this->getServerUrl();
$client = new \SoapClient($this->soapEndpoint);
try {
$response = $client->__soapCall($function_name, $function_params);
} catch (Exception $e) {
throw $e;
}
return $response;
}
public function createUser($username, $email, $firstname, $lastname, $country)
{
$user = new \StdClass();
$user->username = $username;
$user->email = $email;
$user->firstname = $firstname;
$user->lastname = $lastname;
$user->country = $country;
$user->auth = 'manual';
return $this->call('core_user_create_users', [$user]);
}
See screen shots for additional details.
Thanks,
Michael