[Geoserver-users] [Geotools-devel] Request for Post

Christian,

I'm changing your mail to be on the geoserver-users list, as geoserver
is probably what you're interested in if you're trying to access wms
data via POST.

There is a schema for WMS XML Post. It is derived from an (old) OGC
discussion paper, and is located at
http://your-geoserver:8080/geoserver/schemas/sld/GetMap.xsd

We host a copy on our geoserver here:
http://giswebservices.massgis.state.ma.us/geoserver/schemas/sld/GetMap.xsd

To send a request via POST, you have two options:

Option 1) Craft a regular old "getmap URL", put it into the body of an
http post request and set the mime-type on the request to
'application/x-www-form-urlencoded'

Option 2) Craft a valid XML GetMap request (see schema above), put it
into the body of an http post request and set the mime type to
"text/xml"

As for 'putting it into the body of a post request', that depends on
what environment you're using. If you're using javascript, you need to
learn how to manipulate an XMLHttpRequest object. If you're using java,
you need to learn how to use URLConnection and HttpURLConnection. If
you're using the command line, 'wget' or 'curl' will be the easiest ways
to do it.

Every major language has bindings which will allow you to connect to
HTTP servers via POST. You just need to figure out the appropriate
bindings for your language.

Good luck!
--saul

On Fri, 2007-11-30 at 10:44 -0300, Cristian Rinaldi wrote:

Hello people:
    I wonder whether there is any example of how to send by post a
GetMap request.
    Also, I would like to know if there was any schema in xml for
request by post.

Greetings

--
www.juglar.org
"El Java User Group del Litoral Argentino"

@Saludos( mappedBy="GNR" )
public String saludo(){
  return new String( "12 de Febrero - Chinese Democracy" );
}
-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell. From the desktop to the data center, Linux is going
mainstream. Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel