|
|
@@ -53,14 +53,15 @@ if ('/xml/wfs' == substr($taskPath, 0, 8)) {
|
|
|
$taskPath = "/xml/wfsQgis/" . substr($taskPath, 9);
|
|
|
}
|
|
|
|
|
|
-$api = new Api();
|
|
|
-$api->setUser($apiUser);
|
|
|
-$apiBaseUri = Request::getScriptUri();
|
|
|
-$api->setBaseUri($apiBaseUri);// TODO: RMME - replaced with Api_WfsNs::getBaseWfsUri();
|
|
|
try {
|
|
|
+ $api = new Api();
|
|
|
+ $api->setUser($apiUser);
|
|
|
+ $apiBaseUri = Request::getScriptUri();
|
|
|
+ $api->setBaseUri($apiBaseUri);// TODO: RMME - replaced with Api_WfsNs::getBaseWfsUri();
|
|
|
$api->execute($taskPath);
|
|
|
}
|
|
|
catch (HttpException $e) {
|
|
|
+ DBG::log($e);
|
|
|
Http::sendHeaderByCode($e->getCode());
|
|
|
echo $e->getMessage();
|
|
|
}
|