<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
<font color="#ff0000">(This a "reduced" email)<br>
<br>
Hi!<br>
<br>
I'm trying to use "POST" with GetMap requests.<br>
I send a "XML" like this to the URL from GetCapabilities
"Getmap"->"Post" XML.</font><br>
<br>
<font face="Courier New, Courier, monospace"><?xml version="1.0"
encoding="UTF-8"?><br>
<ogc:GetMap xmlns=<a moz-do-not-send="true"
class="moz-txt-link-rfc2396E" href="http://www.opengis.net/sld">"http://www.opengis.net/sld"</a>
xmlns:ogc=<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="http://www.opengis.net/ows">"http://www.opengis.net/ows"</a>
xmlns:gml=<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="http://www.opengis.net/gml">"http://www.opengis.net/gml"</a>
version="1.1.1" service="WMS"><br>
<StyledLayerDescriptor version="1.0.0"
xmlns=<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="http://www.opengis.net/sld">"http://www.opengis.net/sld"</a>
xmlns:gml=<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="http://www.opengis.net/gml">"http://www.opengis.net/gml"</a>
xmlns:wfs=<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="http://www.opengis.net/wfs">"http://www.opengis.net/wfs"</a>
xmlns:ogc=<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="http://www.opengis.net/ogc">"http://www.opengis.net/ogc"</a>
xmlns:xlink=<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="http://www.w3.org/1999/xlink">"http://www.w3.org/1999/xlink"</a>
xmlns:xsi=<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="http://www.w3.org/2001/XMLSchema-instance">"http://www.w3.org/2001/XMLSchema-instance"</a>
xsi:schemaLocation=<a moz-do-not-send="true"
class="moz-txt-link-rfc2396E"
href="http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd">"http://schemas.opengis.net/sld/1.0.0/StyledLayerDescriptor.xsd"</a>><br>
<NamedLayer><Name>SantaOlalla2000</Name><UserStyle><FeatureTypeStyle><rule><Name>Rule0</Name><PolygonSymbolizer><Stroke><CssParameter
name="stroke">#000000</CssParameter></Stroke><Fill><CssParameter
name="fill">#FF2200</CssParameter></Fill></PolygonSymbolizer></rule></FeatureTypeStyle></UserStyle></NamedLayer></StyledLayerDescriptor><br>
<BoundingBox srsName="EPSG:23030"><br>
<gml:coord><gml:X>190080.631389</gml:X><gml:Y>4098000.814418</gml:Y></gml:coord><br>
<gml:coord><gml:X>191032.353934</gml:X><gml:Y>4098799.462511</gml:Y></gml:coord><br>
</BoundingBox><br>
<Output><br>
<Format>image/png</Format><br>
<Transparent>false</Transparent><br>
<BGcolor>0x0</BGcolor><br>
<Size><br>
<Width>840</Width><br>
<Height>705</Height><br>
</Size><br>
</Output><br>
<ogc:Exceptions>application/vnd.ogc.se+xml</ogc:Exceptions><br>
</ogc:GetMap></font><br>
<br>
<br>
<font color="#ff0000">And always returns error:</font><br>
<br>
<HTML><br>
<HEAD><TITLE>MapServer Message</TITLE></HEAD><br>
<!-- MapServer version 5.2.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG
OUTPUT=WBMP OUTPUT=PDF OUTPUT=SWF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=AGG
SUPPORTS=FREETYPE SUPPORTS=ICONV SUPPORTS=FRIBIDI SUPPORTS=WMS_SERVER
SUPPORTS=WMS_CLIENT SUPPORTS=WFS_SERVER SUPPORTS=WFS_CLIENT
SUPPORTS=WCS_SERVER SUPPORTS=SOS_SERVER SUPPORTS=FASTCGI
SUPPORTS=THREADS SUPPORTS=GEOS SUPPORTS=RGBA_PNG INPUT=JPEG
INPUT=POSTGIS INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE --><br>
<BODY BGCOLOR="#FFFFFF"><br>
mapserv(): Web application error. Traditional BROWSE mode requires a
TEMPLATE in the WEB section, but none was provided.<br>
</BODY></HTML><br>
<br>
<br>
<br>
<font color="#ff0000">The "map":</font><br>
<br>
MAP<br>
NAME "SantaOlalla"<br>
EXTENT 190080 4098001 191033 4098803 #Extensión del mapa<br>
<br>
PROJECTION<br>
"init=epsg:23030" <br>
END <br>
<br>
IMAGECOLOR 255 255 255 #Color RGB que se usará de fondo<br>
UNITS meters<br>
STATUS OFF <br>
<br>
#Definimos los tipos JPEG y PNG para obtener los datos<br>
OUTPUTFORMAT<br>
NAME jpeg<br>
DRIVER "GD/JPEG"<br>
MIMETYPE "image/jpeg"<br>
IMAGEMODE RGB<br>
EXTENSION "jpg"<br>
FORMATOPTION "QUALITY=80" #Calidad de la exportación JPEG<br>
END<br>
OUTPUTFORMAT<br>
NAME png<br>
DRIVER "GD/PNG"<br>
MIMETYPE "image/png"<br>
IMAGEMODE RGB<br>
EXTENSION "png"<br>
END<br>
<br>
WEB <br>
LOG "C:/mymapfile.log" <br>
METADATA<br>
"map"
"/ms4w/apps/santaolalla/santaolalla.map"<br>
"ows_title" "Santa Olalla 2000"<br>
"ows_onlineresource"
<a moz-do-not-send="true" class="moz-txt-link-rfc2396E"
href="http://127.0.0.1/cgi-bin/mapserv_santaolalla.exe">"http://127.0.0.1/cgi-bin/mapserv_santaolalla.exe"</a><br>
"wms_feature_info_mime_type" "text/html" <br>
"ows_srs" "epsg:23030" <br>
"ows_extent" "190080 4098001 191033
4098803" <br>
END<br>
#TEMPLATE "./data/templates/template.html"<br>
IMAGEPATH "/ms4w/tmp/ms_tmp/"<br>
IMAGEURL "/tmp/ms_tmp/" <br>
END <br>
<br>
QUERYMAP<br>
STATUS ON<br>
STYLE NORMAL<br>
END<br>
<br>
<br>
#SYMBOLSET "common/simbolos.sym"<br>
#FONTSET "fonts/fontset.txt"<br>
UNITS meters<br>
STATUS OFF <br>
<br>
#Ejemplo Ráster<br>
LAYER<br>
NAME F103311 #Nombre de la capa<br>
PROJECTION<br>
"init=epsg:23030" #Código epsg de
georef<br>
END <br>
METADATA<br>
"wms_title" "F10331" #Título <br>
END<br>
STATUS ON<br>
TYPE RASTER <br>
DATA ./data/F103311.tif #Fichero Ráster<br>
END <br>
<br>
#Ejemplo vectorial<br>
LAYER<br>
NAME "SantaOlalla2000" #Nombre de la
capa<br>
METADATA<br>
"wms_title" "Santa Olalla 2000 (Vect)"
#Nombre que se se le da en WMS<br>
END<br>
TYPE POLYGON #Tipo de SHP<br>
STATUS ON<br>
DUMP TRUE #TRUE = Permitirá
GetFeatureInfo<br>
PROJECTION<br>
"init=epsg:23030" #Código epsg de georef<br>
END<br>
<br>
DATA ./data/solalla #Sin extensión --> Se usa
DBF (se permite hacer query)<br>
<br>
METADATA<br>
"ows_title" "Santa Olalla 2000"
#Nombre OWS<br>
"ows_srs" "epsg:23030" #Código
epsg de georef <br>
"ows_include_items" "all" <br>
END <br>
<br>
HEADER "./common/header.html"<br>
FOOTER "./common/footer.html"<br>
<br>
END<br>
<br>
END #Fin de MAP <br>
<br>
<font color="#ff0000"></font><br>
<font color="#ff0000">I've tried a lot of things (add "mode=map",
differents XML types, use a "Template" file in "WEB", ...).<br>
For me, it's impossible to use the "POST" mode.<br>
<br>
The "Get" mode works ok:<br>
<a moz-do-not-send="true" class="moz-txt-link-freetext"
href="http://127.0.0.1/cgi-bin/mapserv_santaolalla.exe?BBOX=190080.631389,4098000.814418,191032.353934,4098799.462511&FORMAT=image/png&HEIGHT=705&LAYERS=SantaOlalla2000&REQUEST=GetMap&SERVICE=WMS&SLD_BODY=%3cStyledLayerDescriptor%20version%3d%221%2e0%2e0%22%20xsi%3aschemaLocation%3d%22http%3a%2f%2fwww%2eopengis%2enet%2fsld%20StyledLayerDescriptor%2exsd%22%20xmlns%3d%22http%3a%2f%2fwww%2eopengis%2enet%2fsld%22%20xmlns%3aogc%3d%22http%3a%2f%2fwww%2eopengis%2enet%2fogc%22%20xmlns%3axlink%3d%22http%3a%2f%2fwww%2ew3%2eorg%2f1999%2fxlink%22%20xmlns%3axsi%3d%22http%3a%2f%2fwww%2ew3%2eorg%2f2001%2fXMLSchema-instance%22%3e%3cNamedLayer%3e%3cName%3eSantaOlalla2000%3c%2fName%3e%3cUserStyle%3e%3cFeatureTypeStyle%3e%3crule%3e%3cName%3eRule0%3c%2fName%3e%3cPolygonSymbolizer%3e%3cStroke%3e%3cCssParameter%20name%3d%22stroke%22%3e%23000000%3c%2fCssParameter%3e%3c%2fStroke%3e%3cFill%3e%3cCssParameter%20name%3d%22fill%22%3e%23FF2200%3c%2fCssParameter%3e%3c%2fFi%0All%3e
%3c%2fPolygonSymbolizer%3e%3c%2frule%3e%3c%2fFeatureTypeStyle%3e%3c%2fUserStyle%3e%3c%2fNamedLayer%3e%3c%2fStyledLayerDescriptor%3e&SRS=EPSG:23030&STYLES=&TRANSPARENT=FALSE&VERSION=1.1.1&WIDTH=840">http://127.0.0.1/cgi-bin/mapserv_santaolalla.exe?BBOX=190080.631389,4098000.814418,191032.353934,4098799.462511&FORMAT=image/png&HEIGHT=705&LAYERS=SantaOlalla2000&REQUEST=GetMap&SERVICE=WMS&SLD_BODY=%3cStyledLayerDescriptor%20version%3d%221%2e0%2e0%22%20xsi%3aschemaLocation%3d%22http%3a%2f%2fwww%2eopengis%2enet%2fsld%20StyledLayerDescriptor%2exsd%22%20xmlns%3d%22http%3a%2f%2fwww%2eopengis%2enet%2fsld%22%20xmlns%3aogc%3d%22http%3a%2f%2fwww%2eopengis%2enet%2fogc%22%20xmlns%3axlink%3d%22http%3a%2f%2fwww%2ew3%2eorg%2f1999%2fxlink%22%20xmlns%3axsi%3d%22http%3a%2f%2fwww%2ew3%2eorg%2f2001%2fXMLSchema-instance%22%3e%3cNamedLayer%3e%3cName%3eSantaOlalla2000%3c%2fName%3e%3cUserStyle%3e%3cFeatureTypeStyle%3e%3crule%3e%3cName%3eRule0%3c%2fName%3e%3cP
olygonSymbolize
r%3e%3cStroke%3e%3cCssParameter%20name%3d%22stroke%22%3e%23000000%3c%2fCssParameter%3e%3c%2fStroke%3e%3cFill%3e%3cCssParameter%20name%3d%22fill%22%3e%23FF2200%3c%2fCssParameter%3e%3c%2fFill%3e%3c%2fPolygonSymbolizer%3e%3c%2frule%3e%3c%2fFeatureTypeStyle%3e%3c%2fUserStyle%3e%3c%2fNamedLayer%3e%3c%2fStyledLayerDescriptor%3e&SRS=EPSG:23030&STYLES=&TRANSPARENT=FALSE&VERSION=1.1.1&WIDTH=840</a><br>
<br>
My "m4sw" version is 2008-12-01 (ms4w version 2.3.1).<br>
<br>
Any idea?</font><br>
<font color="#ff0000"><br>
Thx in advance!<br>
<br>
Javier.</font><br>
<br>
</body>
</html>