function ws_modifyCourseQuota($assignments) { try { $params = array('assignment' => $assignments); //print_r($assignment); $client = new SoapClient(WSDL_QS, array('location' => LOCATION_QS)); $response = $client->modifyCourseQuota($params); $result = $response->assignment; } catch (Exception $e) { $result = $assignments; } catch (SoapFault $soapfault) { $result = $assignments; } return $result; }