$response=array();
$response[]=array("id"=>1,"name"=>"dashboard");
The service returns are described as follows:
return new external_multiple_structure(
new external_single_structure(
array(
'id' => new external_value(PARAM_INT, 'component id'),
'name' => new external_value(PARAM_TEXT, 'component name, unique')
)
));
On the MM2 side, I tried to access the service as:
$mmSite.read('local_morph_get_morph_components', data, presets).then(function(response){However, whatever I do, I could not make this work, even though very similar service that has only one bool variable instead of int and text which I have here, works fine. The error I got is:
console.log("SERVICE CALL RESPONSE:"+JSON.stringify(response));
});

I think this service description is fine, but I don't know how to investigate what is the problem.
Zoran