HI there, I have installed the GeoServer 1.3 and I have an application in Java that needs geo data, I have read that I can get them with the post method, but I don´t know how to do it…
I have try this:
Untitled Document
url:
body:
and in the body as follows:
<GetCapabilities
service=“WFS”
xmlns=“http://www.opengis.net/wfs”
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”
xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd"/>
but don´t work
the error is as follows:
<?xml version="1.0" ?>
org.xml.sax.SAXParseException: Content is not allowed in prolog.
Regards…
Busca a la vez en Internet, en directorios, en enciclopedias… Atrévete con el nuevo MSN Search
Hi Maurico,
The problem is you are sending the "raw" POST encoded data to the server. If you change the action of your form to http://localhost:8080/geoserver/wfs/TestWFSPost it should work fine. This page decodes the data into a format that the XML parser can handle.
-Justin
Mauricio Lopez wrote:
HI there, I have installed the GeoServer 1.3 and I have an application in Java that needs geo data, I have read that I can get them with the post method, but I don´t know how to do it...
I have try this:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; ">
</head>
<body>
<form action="http://localhost:8080/geoserver/wfs/TestWfsPost>" method="POST">
<tr>
<td class="label">url:</td>
<td class="datum"> <input type="text" size="90" name="url" value="http://localhost:8080/geoserver/wfs"> </td>
</tr>
<tr>
<td class="label">body:</td>
<td class="datum"> <textarea rows="10" cols="90" name="body"></textarea> </td>
</tr>
<tr>
<td class="label"></td>
<td class="datum"> <input type="submit" value="Enviar"> </td>
</tr>
</form>
</body>
</html>
and in the body as follows:
<GetCapabilities
service="WFS"
xmlns="http://www.opengis.net/wfs"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd"/ <http://schemas.opengis.net/wfs/1.0.0/WFS-basic.xsd>>
but don´t work
the error is as follows:
<?xml version="1.0" ?>
<ServiceExceptionReport version="1.2.0" xmlns="http://www.opengis.net/ogc" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/ogc http://localhost:8080/geoserver/data/capabilities//wfs/1.0.0/OGC-exception.xsd">
<ServiceException locator="org.vfny.geoserver.util.requests.readers.DispatcherXmlReader">org.xml.sax.SAXParseException: Content is not allowed in prolog.</ServiceException>
</ServiceExceptionReport>
Regards...
Busca a la vez en Internet, en directorios, en enciclopedias... Atrévete con el nuevo MSN Search <http://g.msn.com/8HMAESES/2740??PS=47575> ------------------------------------------------------- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today * Register for a JBoss Training Course Free Certification Exam for All Training Attendees Through End of 2005 Visit http://www.jboss.com/services/certification for more information _______________________________________________ Geoserver-devel mailing list Geoserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-devel
--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org