iControl 101 - #15 - System Services
This installment of iControl 101, I'll focus on the System Service interface where you can have full control of the running state of all the services on the system. Initialization This article...
Published May 29, 2008
Version 1.0Apr 09, 2010
set_service takes an array for the first parameter and a scalar for the second
System.Services.set_service(
in ServiceType [] services,
in ServiceAction service_action
);
You are coercing both parameters into arrays by placing brackets around them. Remove the brackets around the second parameter and you should be good.
$soapResponse = $System->set_service
(
SOAP::Data->name(services => [$servicetype]),
SOAP::Data->name(service_action => $serviceaction)
);