GeoServer WPS process fail with OpenLayers 2: "The request body should be contained i
I am trying to create an application with WPS builder like this: http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/wps.htmlWhen input format = "text/xml; subtype=wfs-collection/1.0", it creates input field for name of the layer on my server:
function addWFSCollectionInput(input) {var name = input.identifier;var field = document.createElement("input");field.title = input["abstract"];field.value = name + " (layer on the server)";addValueHandlers(field, function() { input.reference = field.value ? { mimeType: "text/xml; subtype=wfs-collection/1.0", href: "http://46.28.111.137:8080/geoserver2711/wfs", method: "POST", body: { wfs: { version: "1.0.0", outputFormat: "GML2", featureType: field.value } } } : undefined;});document.getElementById("input").appendChild(field);}
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:
gs:ClipClipClips (crops) features to a given geometryThe request body should be contained in a CDATA section, otherwise it will get parsed as XML instead of being preserved as isHow can I fix it?
Thanks
أكثر...
I am trying to create an application with WPS builder like this: http://dev.openlayers.org/releases/OpenLayers-2.13.1/examples/wps.htmlWhen input format = "text/xml; subtype=wfs-collection/1.0", it creates input field for name of the layer on my server:
function addWFSCollectionInput(input) {var name = input.identifier;var field = document.createElement("input");field.title = input["abstract"];field.value = name + " (layer on the server)";addValueHandlers(field, function() { input.reference = field.value ? { mimeType: "text/xml; subtype=wfs-collection/1.0", href: "http://46.28.111.137:8080/geoserver2711/wfs", method: "POST", body: { wfs: { version: "1.0.0", outputFormat: "GML2", featureType: field.value } } } : undefined;});document.getElementById("input").appendChild(field);}
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:
gs:ClipClipClips (crops) features to a given geometryThe request body should be contained in a CDATA section, otherwise it will get parsed as XML instead of being preserved as isHow can I fix it?
Thanks
أكثر...