<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Adam,<div class=""><br class=""></div><div class="">I haven’t checked this. Could you please open a ticket on Github? In my processes I always return Complex outputs as reference, so I have probably avoid these issues. </div><div class=""><br class=""></div><div class="">Cheers,</div><div class="">Carsten<br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 10. Aug 2018, at 12:37, Adam Laža <<a href="mailto:ad.laza32@gmail.com" class="">ad.laza32@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">Hi devs,</div><div class=""><br class=""></div><div class="">I have a problem with xml parsing when using alpine/flask Dockerfile [1] (the only minor change is upgraded Xerces version to 3.2.1 and added curl package to apk). After building and starting a container I tried to send sample POST request using curl from within the running container (I checked the xml and it's well-formated):</div><div class=""><br class=""></div><div class=""><span style="font-family:monospace,monospace" class="">curl -d pywps-flask/static/requests/execute_buffer_post.xml localhost:5000/wps</span><br class=""></div><div class=""><br class=""></div><div class="">but I got ExceptionError:</div><div class=""><br class=""></div><div class=""><span style="font-family:monospace,monospace" class=""><?xml version="1.0" encoding="UTF-8"?><br class=""><!-- PyWPS 4.0.0 --><br class=""><ows:ExceptionReport xmlns:ows="<a href="http://www.opengis.net/ows/1.1" class="">http://www.opengis.net/ows/1.1</a>" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" class="">http://www.w3.org/2001/XMLSchema-instance</a>" xsi:schemaLocation="<a href="http://www.opengis.net/ows/1.1" class="">http://www.opengis.net/ows/1.1</a> <a href="http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd" class="">http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd</a>" version="1.0.0"><br class=""> <ows:Exception exceptionCode="NoApplicableCode" locator="" ><br class=""> <ows:ExceptionText>Start tag expected, '<' not found, line 1, column 1</ows:ExceptionText><br class=""> </ows:Exception><br class=""></ows:ExceptionReport></span></div><div class=""><span style="font-family:monospace,monospace" class=""><br class=""></span></div><div class=""><span style="font-family:monospace,monospace" class=""></span><br class=""></div><div class=""><br class=""></div><div class="">I also tried to use OWSLib to send the request and I get the result code but the output in response is not well-formated:</div><div class=""><br class=""></div><div class=""><span style="font-family:monospace,monospace" class=""> <wps:Output><br class=""> <ows:Identifier>buff_out</ows:Identifier><br class=""> <ows:Title>Buffered file</ows:Title><br class=""> <ows:Abstract></ows:Abstract><br class=""> <wps:Data><br class=""> <wps:ComplexData mimeType="application/gml+xml" encoding="" schema=""><br class=""> <![CDATA[<br class=""> <ogr:FeatureCollection xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance"" class="">http://www.w3.org/2001/XMLSchema-instance"</a>; xmlns:ogr="<a href="http://ogr.maptools.org/"" class="">http://ogr.maptools.org/"</a>; xmlns:gml="<a href="http://www.opengis.net/gml"" class="">http://www.opengis.net/gml"</a>; xsi:schemaLocation=" <a href="http://schemas.opengis.net/gml/2.1.2/feature.xsd">" class="">http://schemas.opengis.net/gml/2.1.2/feature.xsd"></a>;<br class=""> <gml:boundedBy><br class=""> <gml:Box><br class=""> <gml:coord><gml:X>-0.9514645979959721</gml:X><gml:Y>-0.986306232731747</gml:Y></gml:coord><br class=""> <gml:coord><gml:X>1.048535402004028</gml:X><gml:Y>1.013693767268253</gml:Y></gml:coord><br class=""> </gml:Box><br class=""> </gml:boundedBy><br class=""> <br class=""> <gml:featureMember><br class=""> <ogr:point_buffer fid="point_buffer.0"><br class=""> <ogr:geometryProperty><gml:Polygon><gml:outerBoundaryIs><gml:LinearRing><gml:coordinates>1.04853540200403,0.013693767268253 1.0471649367586,-0.038642188974691 1.0430572973723,-0.0908346959994 11.03622374259917,0.170128232308481 1.0430572973723,0.118222230535904 1.0471649367586,0.066029723511194 1.04853540200403,0.013693767268253</gml:coordinates></gml:LinearRing></gml:outerBoundaryIs></gml:Polygon></ogr:geometryProperty><br class=""> </ogr:point_buffer><br class=""> </gml:featureMember><br class=""></ogr:FeatureCollection><br class=""><br class=""> ]]><br class=""> </wps:ComplexData><br class=""> </wps:Data><br class=""> </wps:Output></span></div><div class=""><span style="font-family:monospace,monospace" class=""><br class=""></span></div><div class=""><span style="font-family:monospace,monospace" class=""><font face="arial,helvetica,sans-serif" class="">Any idea what could be wrong? I hadn't this problem before. It started after I built a new Docker image (but from the same Dockerfile). I suspect expat or xerces but not really sure what I should be looking for.</font></span></div><div class=""><span style="font-family:monospace,monospace" class=""><font face="arial,helvetica,sans-serif" class=""><br class=""></font></span></div><div class=""><span style="font-family:monospace,monospace" class=""><font face="arial,helvetica,sans-serif" class="">Cheers,</font></span></div><div class=""><span style="font-family:monospace,monospace" class=""><font face="arial,helvetica,sans-serif" class="">Adam</font><br class=""></span></div><div class=""><br class=""></div><div class=""><br class=""></div><div class="">[1]: <a href="https://github.com/geopython/pywps-flask/blob/master/docker/alpine/flask/Dockerfile" class="">https://github.com/geopython/pywps-flask/blob/master/docker/alpine/flask/Dockerfile</a><br class=""></div></div>
_______________________________________________<br class="">pywps-dev mailing list<br class=""><a href="mailto:pywps-dev@lists.osgeo.org" class="">pywps-dev@lists.osgeo.org</a><br class="">https://lists.osgeo.org/mailman/listinfo/pywps-dev</div></blockquote></div><br class=""></div></body></html>