I've been trying to test a geoserver WFS using a HTML form. I can get GET
requests to work, but I can't work out how to do POST requests.
I keep getting error messages like:
<ServiceExceptionReport version="1.2.0"
xsi:schemaLocation="http://www.opengis.net/ogc
http://www.gisontheweb.com:8080/geoserver/data/capabilities/wfs/1.0.0/OGC-exception.xsd">
<ServiceException locator="org.vfny.geoserver.requests.XmlRequestReader">
XML capabilities request parsing error:
com.caucho.xml.XmlParseException: stream:1: XML file has no top-element.
All well-formed XML files have a single top-level element.
</ServiceException>
</ServiceExceptionReport>
<html>
<body>
<h2>Post GetCapabilities</h2>
<form action="http://www.gisontheweb.com:8080/geoserver/GetCapabilities"
method="post">
<textarea cols="40" rows="5">
<?xml version="1.0" encoding="UTF-8"?>
<GetCapabilities service="WFS"/>
</textarea>
<input type="submit">
</form>
</body>
</html>
======
If I change the form action URL to
http://www.gisontheweb.com:8080/geoserver/wfs I get the error:
"No wfs kvp request recognized. The REQUEST parameter must be one of
GetFeature, GetFeatureWIthLock, DescribeFeatureType, LockFeature, or
Transaction."
Any ideas on what I'm doing wrong?
--
Cameron Shorter http://cameron.shorter.net
Open Source Developer http://generguide.sourceforge.net
http://mapbuilder.sourceforge.net
http://geotools.org
Senior Software Engineer http://www.adi-limited.com