Hi all, I have a problem to consulting WFS. How to avoid that the WFS takes 04 like number in a consulting? the request is the next:
<wfs:GetFeature service=“WFS” version=“1.0.0” outputFormat=“GML2”
xmlns:myns=“http://www.someserver.com/myns”
xmlns:wfs=“http://www.opengis.net/wfs”
xmlns:ogc=“http://www.opengis.net/ogc”
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”
xsi:schemaLocation=“http://www.opengis.net/wfs …/wfs/1.0.0/WFS-basic.xsd”>
<wfs:Query typeName=“topp:lotizacion”>
ogc:Filter
ogc:PropertyIsEqualTo
ogc:PropertyNamecoddpto</ogc:PropertyName>
ogc:Literal04</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
</wfs:Query>
</wfs:GetFeature>
the field coddpto is char(2) type and when do the consulting, the WFS takes the 04 like a number, then 4 and it do not return any data.
Thanks in advance
This is a bug, It has been reported to GeoTools. We will try to fix it as soon as we can.
Brent Owens
(The Open Planning Project)
Omar Zevallos wrote:
Hi all, I have a problem to consulting WFS. How to avoid that the WFS takes 04 like number in a consulting? the request is the next:
<wfs:GetFeature service="WFS" version="1.0.0" outputFormat="GML2"
xmlns:myns="http://www.someserver.com/myns"
xmlns:wfs="http://www.opengis.net/wfs"
xmlns:ogc="http://www.opengis.net/ogc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/wfs ../wfs/1.0.0/WFS-basic.xsd">
<wfs:Query typeName="topp:lotizacion">
<ogc:Filter>
<ogc:PropertyIsEqualTo>
<ogc:PropertyName>coddpto</ogc:PropertyName>
<ogc:Literal>04</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
</wfs:Query>
</wfs:GetFeature>
the field coddpto is char(2) type and when do the consulting, the WFS takes the 04 like a number, then 4 and it do not return any data.
Thanks in advance