[Geoserver-devel] [jira] Created: (GEOS-499) Demos -- SLD POST and TestWFS servlet

Demos -- SLD POST and TestWFS servlet
-------------------------------------

         Key: GEOS-499
         URL: http://jira.codehaus.org/browse/GEOS-499
     Project: GeoServer
        Type: Bug
    Reporter: dblasby
Assigned to: dblasby
     Fix For: 1.3.0

The TestWFS (http://localhost:8080/geoserver/demoRequest.do) web page (the one where you can choose some XML and send it to the server) and the corresponding little servlet has a few issues.

NOTE: the servlet just takes a HTML POST operation with a URL= and BODY= parameter and sends the BODY contents to the URL in much the same way as an XMLHTTPRequest would. Its currently buggy in that it incorrectly sets the request content-type (it should probably be text/xml but its reporting it as an HTTP form).

It works by looking in the demo/ directory for .url and .xml files and sticks them in the drop down menu. If its a .url, the body is empty and it just sets the url (good for GET WMS operations). If its an .xml file then it sets the url to the WFS server and sticks the content of the .xml file in the text box.

This means that you can only have demo .xml that go to the WFS.

1. add support so that you can send HTML POST requests directly to the server for both WMS and WFS (this is probably harder than you might think!) NOTE: WMS looks like its already been done.
2. add support so that the system is smart enough to tell the difference between an SLD-POST XML demo request and a WFS XML demo request. The only difference is one should be routed to the WFS servlet and other to the WMS servlet.
3. it needs a 'face lift' as its a bit confusing. Perhaps a documentation text box?

What would be great if you could type in an SLD and have it used as an SLD_BODY= in a mapbuilder application (see http://docs.codehaus.org/display/GEOSDOC/ComplexLabelingExample).

And example of an SLD-POST with inlinefeatures is here:
http://docs.codehaus.org/display/GEOSDOC/InlineFeature

This is probably a duplicate bug report, but the others appear to be lost and are not in this detail.

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira