[Geoserver-devel] [jira] Created: (GEOS-4519) WPS Process Builder generates invalid XML

WPS Process Builder generates invalid XML
-----------------------------------------

                 Key: GEOS-4519
                 URL: http://jira.codehaus.org/browse/GEOS-4519
             Project: GeoServer
          Issue Type: Bug
          Components: WPS
    Affects Versions: 2.1-RC5
            Reporter: Bart van den Eijnden
            Assignee: Andrea Aime

It seems to be missing a <Body> tag and the required attributes service and version on the wps:Execute tag, changing those then the request is valid. The request below is now valid.

<?xml version="1.0" encoding="UTF-8"?>
<wps:Execute version="1.0.0" service="WPS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&quot;
    xmlns="http://www.opengis.net/wps/1.0.0&quot; xmlns:wfs="http://www.opengis.net/wfs&quot;
    xmlns:wps="http://www.opengis.net/wps/1.0.0&quot; xmlns:ows="http://www.opengis.net/ows/1.1&quot;
    xmlns:gml="http://www.opengis.net/gml&quot; xmlns:ogc="http://www.opengis.net/ogc&quot;
    xmlns:wcs="http://www.opengis.net/wcs/1.1.1&quot; xmlns:xlink="http://www.w3.org/1999/xlink&quot;
    xsi:schemaLocation="http://www.opengis.net/wps/1.0.0 http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd&quot;&gt;
    <ows:Identifier>JTS:area</ows:Identifier>
    <wps:DataInputs>
        <wps:Input>
            <ows:Identifier>geom</ows:Identifier>
            <wps:Reference mimeType="text/xml; subtype=gml/3.1.1" xlink:href="http://geoserver/wps&quot;
                method="POST">
                <Body>
                    <wps:Execute service="WPS" version="1.0.0">
                        <ows:Identifier>gs:CollectGeometries</ows:Identifier>
                        <wps:DataInputs>
                            <wps:Input>
                                <ows:Identifier>features</ows:Identifier>
                                <wps:Reference mimeType="text/xml; subtype=wfs-collection/1.0"
                                    xlink:href="http://geoserver/wfs&quot; method="POST">
                                    <wps:Body>
                                        <wfs:GetFeature service="WFS" version="1.0.0"
                                            outputFormat="GML2">
                                            <wfs:Query typeName="sf:archsites"/>
                                        </wfs:GetFeature>
                                    </wps:Body>
                                </wps:Reference>
                            </wps:Input>
                        </wps:DataInputs>
                        <wps:ResponseForm>
                            <wps:RawDataOutput mimeType="text/xml; subtype=gml/3.1.1">
                                <ows:Identifier>result</ows:Identifier>
                            </wps:RawDataOutput>
                        </wps:ResponseForm>
                    </wps:Execute>
                </Body>
            </wps:Reference>
        </wps:Input>
    </wps:DataInputs>
    <wps:ResponseForm>
        <wps:RawDataOutput>
            <ows:Identifier>result</ows:Identifier>
        </wps:RawDataOutput>
    </wps:ResponseForm>
</wps:Execute>

--
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