<div dir="ltr"><div>Hi,</div><div><br></div><div>I am trying to create an application with WPS builder like this: <a href="http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/wps.html">http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/wps.html</a></div><div>When input format = "text/xml; subtype=wfs-collection/1.0", it creates input field for name of the layer on my server:</div><div><br></div><div>function addWFSCollectionInput(input) {</div><div>    var name = input.identifier;</div><div>    var field = document.createElement("input");</div><div>    field.title = input["abstract"];</div><div>    field.value = name + " (layer on the server)";</div><div>    addValueHandlers(field, function() {</div><div>        input.reference = field.value ? {</div><div>            mimeType: "text/xml; subtype=wfs-collection/1.0",</div><div>            href: "<a href="http://46.28.111.137:8080/geoserver2711/wfs">http://46.28.111.137:8080/geoserver2711/wfs</a>",</div><div>            method: "POST",</div><div>            body: {</div><div>                wfs: {</div><div>                    version: "1.0.0",</div><div>                    outputFormat: "GML2",</div><div>                    featureType: field.value</div><div>                }</div><div>            }</div><div>        } : undefined;</div><div>    });</div><div>    document.getElementById("input").appendChild(field);</div><div>}</div><div><br></div><div>This input is required for example by algorithms gs:Clip and gs:Aggregate. When I'm trying to run some of these algorithms, it returns this kind of result:</div><div><br></div><div><?xml version="1.0" encoding="UTF-8"?><wps:ExecuteResponse xmlns:xs="<a href="http://www.w3.org/2001/XMLSchema">http://www.w3.org/2001/XMLSchema</a>" xmlns:wps="<a href="http://www.opengis.net/wps/1.0.0">http://www.opengis.net/wps/1.0.0</a>" xmlns:ows="<a href="http://www.opengis.net/ows/1.1">http://www.opengis.net/ows/1.1</a>" xmlns:xlink="<a href="http://www.w3.org/1999/xlink">http://www.w3.org/1999/xlink</a>" xml:lang="en" service="WPS" serviceInstance="<a href="http://46.28.111.137:8080/geoserver2711/ows">http://46.28.111.137:8080/geoserver2711/ows</a>?" version="1.0.0"><wps:Process wps:processVersion="1.0.0"><ows:Identifier>gs:Clip</ows:Identifier><ows:Title>Clip</ows:Title><ows:Abstract>Clips (crops) features to a given geometry</ows:Abstract></wps:Process><wps:Status creationTime="2015-08-25T08:35:59.568Z"><wps:ProcessFailed><ows:ExceptionReport version="1.1.0"><ows:Exception exceptionCode="NoApplicableCode"><ows:ExceptionText>The request body should be contained in a CDATA section, otherwise it will get parsed as XML instead of being preserved as is</ows:ExceptionText></ows:Exception></ows:ExceptionReport></wps:ProcessFailed></wps:Status></wps:ExecuteResponse></div><div><br></div><div>How can I fix it?</div><div><br></div><div>Thanks</div></div>