I am connecting via soap to a remote system to pull information and would like some help on how to pass an array of data durring connection. Right now, this code works correctly;
$soapClient = new SoapClient("https://host:8443/realtimeservice/services/RisPort?wsdl", array('stream_context' => $context, trace'=>true, 'login' => "login",'password'=> "password"));
$array['SelectBy'] = "Name";
$array['Status'] = "Any";
$array['SelectItems']['SelectItem[0]']['Item'] = "deviceName";
$devices = $soapClient->SelectCmDevice("", $array);
I would like to condense it into the $device variable so that I don't have separate array statements. It feels like it should kind of look like this;
$devices = $soapClient->SelectCmDevice("", array('SelectBy'=>'Name','Status'=>'Any',?));
However, I don't know how to write the third object. Can someone help?