Skip to content
Permalink
Browse files

Merge pull request #7461 from pblottiere/server_wfs_post

[server] Fixes Post element in WFS GetCapabilities doc
  • Loading branch information
pblottiere committed Jul 24, 2018
2 parents 10a66da + 8b14a5b commit 1a94727dbeaab79f34c2195182d36431bd68208e
@@ -331,11 +331,13 @@ namespace QgsWfs
QDomElement dcpElement = doc.createElement( QStringLiteral( "ows:DCP" ) );
QDomElement httpElement = doc.createElement( QStringLiteral( "ows:HTTP" ) );
QDomElement getElement = doc.createElement( QStringLiteral( "ows:Get" ) );
getElement.setAttribute( QStringLiteral( "xlink:type" ), QStringLiteral( "xlink:simple" ) );
getElement.setAttribute( QStringLiteral( "xlink:href" ), hrefString );
QDomElement postElement = getElement.cloneNode().toElement();
httpElement.appendChild( getElement );

QDomElement postElement = doc.createElement( QStringLiteral( "ows:Post" ) );
postElement.setAttribute( QStringLiteral( "xlink:href" ), hrefString );
httpElement.appendChild( postElement );

dcpElement.appendChild( httpElement );
operationElement.appendChild( dcpElement );

@@ -20,8 +20,8 @@ Content-Type: text/xml; charset=utf-8
<ows:Operation name="GetCapabilities">
<ows:DCP>
<ows:HTTP>
<ows:Get xlink:type="xlink:simple" xlink:href="?MAP=/home/dhont/3liz_dev/QGIS/qgis_rldhont/tests/testdata/qgis_server/test_project_wfs.qgs"/>
<ows:Get xlink:type="xlink:simple" xlink:href="?MAP=/home/dhont/3liz_dev/QGIS/qgis_rldhont/tests/testdata/qgis_server/test_project_wfs.qgs"/>
<ows:Get xlink:href="?MAP=/home/dhont/3liz_dev/QGIS/qgis_rldhont/tests/testdata/qgis_server/test_project_wfs.qgs"/>
<ows:Post xlink:href="?MAP=/home/dhont/3liz_dev/QGIS/qgis_rldhont/tests/testdata/qgis_server/test_project_wfs.qgs"/>
</ows:HTTP>
</ows:DCP>
<ows:Parameter name="service">
@@ -38,8 +38,8 @@ Content-Type: text/xml; charset=utf-8
<ows:Operation name="DescribeFeatureType">
<ows:DCP>
<ows:HTTP>
<ows:Get xlink:type="xlink:simple" xlink:href="?MAP=/home/dhont/3liz_dev/QGIS/qgis_rldhont/tests/testdata/qgis_server/test_project_wfs.qgs"/>
<ows:Get xlink:type="xlink:simple" xlink:href="?MAP=/home/dhont/3liz_dev/QGIS/qgis_rldhont/tests/testdata/qgis_server/test_project_wfs.qgs"/>
<ows:Get xlink:href="?MAP=/home/dhont/3liz_dev/QGIS/qgis_rldhont/tests/testdata/qgis_server/test_project_wfs.qgs"/>
<ows:Post xlink:href="?MAP=/home/dhont/3liz_dev/QGIS/qgis_rldhont/tests/testdata/qgis_server/test_project_wfs.qgs"/>
</ows:HTTP>
</ows:DCP>
<ows:Parameter name="outputFormat">
@@ -51,8 +51,8 @@ Content-Type: text/xml; charset=utf-8
<ows:Operation name="GetFeature">
<ows:DCP>
<ows:HTTP>
<ows:Get xlink:type="xlink:simple" xlink:href="?MAP=/home/dhont/3liz_dev/QGIS/qgis_rldhont/tests/testdata/qgis_server/test_project_wfs.qgs"/>
<ows:Get xlink:type="xlink:simple" xlink:href="?MAP=/home/dhont/3liz_dev/QGIS/qgis_rldhont/tests/testdata/qgis_server/test_project_wfs.qgs"/>
<ows:Get xlink:href="?MAP=/home/dhont/3liz_dev/QGIS/qgis_rldhont/tests/testdata/qgis_server/test_project_wfs.qgs"/>
<ows:Post xlink:href="?MAP=/home/dhont/3liz_dev/QGIS/qgis_rldhont/tests/testdata/qgis_server/test_project_wfs.qgs"/>
</ows:HTTP>
</ows:DCP>
<ows:Parameter name="outputFormat">
@@ -68,8 +68,8 @@ Content-Type: text/xml; charset=utf-8
<ows:Operation name="Transaction">
<ows:DCP>
<ows:HTTP>
<ows:Get xlink:type="xlink:simple" xlink:href="?MAP=/home/dhont/3liz_dev/QGIS/qgis_rldhont/tests/testdata/qgis_server/test_project_wfs.qgs"/>
<ows:Get xlink:type="xlink:simple" xlink:href="?MAP=/home/dhont/3liz_dev/QGIS/qgis_rldhont/tests/testdata/qgis_server/test_project_wfs.qgs"/>
<ows:Get xlink:href="?MAP=/home/dhont/3liz_dev/QGIS/qgis_rldhont/tests/testdata/qgis_server/test_project_wfs.qgs"/>
<ows:Post xlink:href="?MAP=/home/dhont/3liz_dev/QGIS/qgis_rldhont/tests/testdata/qgis_server/test_project_wfs.qgs"/>
</ows:HTTP>
</ows:DCP>
<ows:Parameter name="inputFormat">

0 comments on commit 1a94727

Please sign in to comment.
You can’t perform that action at this time.