iControl 101 - #15 - System Services
Published May 29, 2008
Version 1.0Was this article helpful?
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)
);