$ftElementArray = array();
             $aWFS->getelements($aWFS->features->featuretype_id[$j]);
             for ($k = 0; $k < count($aWFS->elements->element_id); $k++) {
                 $ftElementArray[] = array("id" => $aWFS->elements->element_id[$k], "name" => $aWFS->elements->element_name[$k], "type" => $aWFS->elements->element_type[$k]);
             }
             $featuretypeArray[] = array("id" => $aWFS->features->featuretype_id[$j], "name" => $aWFS->features->featuretype_name[$j], "srs" => $aWFS->features->featuretype_srs[$j], "elementArray" => $ftElementArray);
         }
         $result[] = array("id" => $aWFS->wfs_id[$i], "name" => $aWFS->wfs_name[$i], "title" => $aWFS->wfs_title[$i], "abstr" => $aWFS->wfs_abstract[$i], "getCapabilities" => $aWFS->wfs_getcapabilities[$i], "describeFeaturetype" => $aWFS->wfs_describefeaturetype[$i], "getFeature" => $aWFS->wfs_getfeature[$i], "featuretypeArray" => $featuretypeArray);
     }
     $ajaxResponse->setResult($result);
     $ajaxResponse->send();
     break;
 case "updateWfsConf":
     $wfsConfObj = $ajaxResponse->getParameter("wfsConf");
     $wfsConf = WfsConfiguration::createFromObject($wfsConfObj);
     $success = WfsConfiguration::updateInDb($wfsConf);
     $ajaxResponse->setSuccess($success);
     $message = "The WFS configuration has been updated in the database.";
     if (!$success) {
         $message = "An error occured when updating the WFS configuration in the database.";
     }
     $ajaxResponse->setMessage($message);
     $ajaxResponse->send();
     break;
 case "insertWfsConf":
     $wfsConfObj = $ajaxResponse->getParameter("wfsConf");
     $wfsConf = WfsConfiguration::createFromObject($wfsConfObj);
     $success = false;
     $id = WfsConfiguration::insertIntoDb($wfsConf);
     if ($id === null) {
         $success = false;