xml - geoserver进程的curl

标签 xml curl geoserver

我都。我有以下 xml 执行文件:

<?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 的文件保存在桌面上。 我也像管理员一样正确连接了地理服务器。 我会通过curl命令来完成这个过程,例如: curl -H '内容类型:xml' -XPOST --data 'C:...\Desktop\Hello.xml'

结果如下: 无法从http请求org.geoserver.platform.AdvancedDispatchFilter$AdvancedDispatchHttpRequest@6c7e7eb8确定geoserver请求

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

最佳答案

我远不是最专家,但我能够使用以下方法调用 geoserver wps 进程:

curl -H“内容类型:text/xml”[email protected] -X 发布 http://geoserver.local:8080/geoserver/wps

...所以,请注意我的调用中的差异: -内容类型:文本/xml -X 和 POST 之间有空格

...我对进程 gs:HelloWPS 一无所知。该过程似乎不属于与 geoserver/GDAL 一起分发的过程。我正在使用 gs:GeoRectifyCoverage 等。您可以在 WPS 命令生成器应用程序中查看已安装的可用进程列表。在 geoserver 中,单击“演示”,然后单击“WPS 请求生成器”,然后单击“选择进程”下拉列表以查看可以调用的进程列表。

关于xml - geoserver进程的curl,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27859373/

相关文章:

java - 在Android Studio中将Java变量插入xml

json - window : curl with json data on the command line

docker - 为Druid构建Docker镜像时出错

python - 在 Fedora 中使用 Openlayers proxy.cgi?

linux - 部署地理服务器 WAR 后,Tomcat 未在浏览器上加载 - Ubuntu

apache - 使用 8081 端口将 Apache 代理到 Geoserver 8080 以实现 WFS

html - 为什么需要 HTML 字符实体?

xml - Hive Serde Xpath 提取

xml - Magento 数据库 IP 已缓存

php - PHP 中的 cURL 下载进度不起作用?