@@ -431,8 +431,13 @@ namespace QgsWfs
431
431
QDomElement operationsElement = doc.createElement ( QStringLiteral ( " Operations" )/* wfs:Operations*/ );
432
432
featureTypeListElement.appendChild ( operationsElement );
433
433
// wfs:Query element
434
- QDomElement queryElement = doc.createElement ( QStringLiteral ( " Query" )/* wfs:Query*/ );
435
- operationsElement.appendChild ( queryElement );
434
+ QDomElement operationElement = doc.createElement ( QStringLiteral ( " Operation" ) );
435
+ QDomText queryText = doc.createTextNode ( " Query" );
436
+ operationElement.appendChild ( queryText );
437
+ operationsElement.appendChild ( operationElement );
438
+
439
+ // QDomElement queryElement = doc.createElement( QStringLiteral( "Query" )/*wfs:Query*/ );
440
+ // operationsElement.appendChild( queryElement );
436
441
437
442
const QStringList wfsLayerIds = QgsServerProjectUtils::wfsLayerIds ( *project );
438
443
const QStringList wfstUpdateLayersId = QgsServerProjectUtils::wfstUpdateLayerIds ( *project );
@@ -575,8 +580,12 @@ namespace QgsWfs
575
580
// wfs:Operations element
576
581
QDomElement operationsElement = doc.createElement ( QStringLiteral ( " Operations" )/* wfs:Operations*/ );
577
582
// wfs:Query element
578
- QDomElement queryElement = doc.createElement ( QStringLiteral ( " Query" )/* wfs:Query*/ );
579
- operationsElement.appendChild ( queryElement );
583
+ // QDomElement queryElement = doc.createElement( QStringLiteral( "Query" )/*wfs:Query*/ );
584
+ // operationsElement.appendChild( queryElement );
585
+ QDomElement operationElement = doc.createElement ( QStringLiteral ( " Operation" ) );
586
+ QDomText queryText = doc.createTextNode ( " Query" );
587
+ operationElement.appendChild ( queryText );
588
+ operationsElement.appendChild ( operationElement );
580
589
if ( wfstUpdateLayersId.contains ( layer->id () ) ||
581
590
wfstInsertLayersId.contains ( layer->id () ) ||
582
591
wfstDeleteLayersId.contains ( layer->id () ) )
0 commit comments