Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have the following geoprocessing post request:

<wps:Execute xmlns:xsi="" xmlns="" xmlns:wfs="" xmlns:wps="" xmlns:ows="" xmlns:gml="" xmlns:ogc="" xmlns:wcs="" xmlns:xlink="" version="1.0.0" service="WPS" xsi:schemaLocation="">
    <wps:Reference mimeType="text/xml; subtype=wfs-collection/1.0" xlink:href="http://geoserver/wfs" method="POST">
      <wfs:GetFeature xmlns:medford="" service="WFS" version="1.0.0" outputFormat="GML2">
      <wfs:Query typeName="medford:firestations"/>
  <wps:RawDataOutput mimeType="text/xml; subtype=wfs-collection/1.0">

How can I transform it to get request?


share|improve this question

What are you actually trying to achieve here? If you would like to make a this WPS (web processing service) request to the server, then you will need to use a POST action. There is a fairly important difference between POST and GET actions (see HTTP/1.1 Method Definitions) and although in some cases the handlers are incorrectly implemented on the server side according to these specifications, it's best to use the correct one. In this case, you should be using a POST.

Unlike a GET request which you can easily create from within your request url, it's a little more tricky to create a POST request.

You could use curl to create the request, as shown at the botton of the page at, or use the Request Builder as recommended by Geoserver. If you have any experience using Python, then I wrote a request script for a similar query on WFS POST requests ( There are also a few browser plugins which allow you to manually fire up a HTTP Post Request.

Hope this helps

share|improve this answer
Thank you for your replay! I m trying to execute a wps orchestration using The problem is that I have to use a REST Service using Get request method and to include all the wps parameters into the url... So, I have to tranform the above post request to get. – voimak Feb 10 '13 at 22:41
You can still use post requests for a REST service, although the WPS is not (yet) a RESTful service. I'm not too familiar with What sort of control do you have over the client you are using to make the REST request. – Guy Feb 11 '13 at 14:51

Try this:


After xlink:href, is the hole "WFS subrequest".

If you want to return json, add &RawDataOutput=result%3dformat%40mimetype%3dapplication%2Fjson to the end.

This a sample of gs:Unique GET request.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.