tinyows icon indicating copy to clipboard operation
tinyows copied to clipboard

support for HTTPS requests

Open jmckenna opened this issue 5 years ago • 1 comments

If the host is using HTTPS, the WFS-T response will be "XML request isn't valid" such as:

<?xml version='1.0' encoding='UTF-8'?>
<ows:ExceptionReport
 xmlns='http://www.opengis.net/ows'
 xmlns:ows='http://www.opengis.net/ows'
 xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
 xsi:schemaLocation='http://www.opengis.net/ows http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd'
 version='1.1.0' language='en'>
 <ows:Exception exceptionCode='InvalidParameterValue' locator='request'>
  <ows:ExceptionText>XML request isn't valid</ows:ExceptionText>
 </ows:Exception>
</ows:ExceptionReport>

where the Request was:

<wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.1.0/wfs.xsd http://www.tinyows.org/ https://ms4w.dev/cgi-bin/tinyows.exe?service=wfs&amp;request=DescribeFeatureType&amp;version=1.1.0&amp;typename=tows:frida" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><wfs:Insert><feature:frida xmlns:feature="http://www.tinyows.org/"><feature:geom><gml:MultiSurface xmlns:gml="http://www.opengis.net/gml" srsName="EPSG:31467"><gml:surfaceMember><gml:Polygon><gml:exterior><gml:LinearRing><gml:posList>3443502.4001465 5791270.3999023 3444702.4001465 5791894.3999023 3443910.4001465 5790214.3999023 3443502.4001465 5791270.3999023</gml:posList></gml:LinearRing></gml:exterior></gml:Polygon></gml:surfaceMember></gml:MultiSurface></feature:geom></feature:frida></wfs:Insert></wfs:Transaction>

jmckenna avatar Oct 21 '20 18:10 jmckenna

For the record: a workaround is to set check_schema="0" in config.xml, when using HTTPS

jmckenna avatar Dec 17 '20 00:12 jmckenna