encode($resObj); die; } $wfsConf = WfsConfiguration::createFromDb($wfs_conf_id); if (is_null($wfsConf)) { sendErrorMessage("Invalid WFS conf: " . $wfs_conf_id); } $myWfsFactory = new UniversalWfsFactory(); //don't return proxy urls cause the request should go directly to the server $myWfsFactory->returnProxyUrls = false; $myWfs = $myWfsFactory->createFromDb($wfsConf->wfsId); if (is_null($myWfs)) { sendErrorMessage("Invalid WFS: " . $wfsConf->wfsId); } $data = $myWfs->transaction($method, $wfsConf, $geoJson); if (is_null($data)) { sendErrorMessage("WFS didn't return any data."); } $resObj = $myWfs->parseTransactionResponse($data); header("Content-Type:application/x-json"); $json = new Mapbender_JSON(); echo $json->encode($resObj); ?>