id = $id; } } /** * @return array of object Student $a * (maps to the xs:anyType XML schema type ) */ function getStudents() { $a = array(); for($i = 0; $i <= 2; $i++) { $a[$i] = new Student("$i"); } return array("a" => $a); } $operations = array("getStudents"); $opParams = array("getStudents"=> "MIXED"); $service = new WSService(array("operations" => $operations, "opParams" => $opParams)); $service->reply(); ?>