2015-01-09 29 views
1

我全部。我有以下xml执行文件:用于geoserver处理的卷曲

<?xml version="1.0" encoding="UTF-8"?> 

-<wps:Execute xsi:schemaLocation="http://www.opengis.net/wps/1.0.0  http://schemas.opengis.net/wps/1.0.0/wpsAll.xsd" xmlns:xlink="http://www.w3.org/1999/xlink"  xmlns:wcs="http://www.opengis.net/wcs/1.1.1" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:wps="http://www.opengis.net/wps/1.0.0" xmlns:wfs="http://www.opengis.net/wfs" xmlns="http://www.opengis.net/wps/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" service="WPS" version="1.0.0"> 
<ows:Identifier>gs:HelloWPS</ows:Identifier> 
<wps:DataInputs> 
<wps:Input>  
<ows:Identifier>Hello!!</ows:Identifier> 
<wps:Data> 
<wps:LiteralData>world</wps:LiteralData> 
</wps:Data> 
</wps:Input> 
</wps:DataInputs> 
<wps:ResponseForm> 
<wps:RawDataOutput> 
<ows:Identifier>result</ows:Identifier> 
</wps:RawDataOutput> 
</wps:ResponseForm> 
</wps:Execute>  

此文件名为Hello.xml保存在桌面上。 我也只是像管理员一样连接到geoserver。 我会通过curl命令使这个过程中,如: 卷曲-H“内容类型:XML” -XPOST --data“C:\桌面\的hello.xml”

结果如下异常: 无法确定来自http请求的geoserver请求org.geoser[email protected]6c7e7eb8

有人可以帮助我吗?非常感谢

回答

1

我远离最大的专家,但我可以用调用的GeoServer WPS过程:

卷曲-H“内容类型:文本/ xml”的[email protected] - X POST http://geoserver.local:8080/geoserver/wps

...所以,在我的调用注差异: -content类型:text/xml的X和POST

之间 -Space ......我不知道过程GS什么:HelloWPS。这个过程似乎不是使用geoserver/GDAL发布的过程。我正在使用诸如gs:GeoRectifyCoverage等等。您可以在WPS命令生成器应用程序中看到已安装的可用进程列表。在geoserver中,单击“演示”,然后单击“WPS请求生成器”,然后单击“选择进程”下拉列表以查看可以调用的进程列表。