美文网首页
使用Postman发送xml Post请求(Geoserver)

使用Postman发送xml Post请求(Geoserver)

作者: Yo_5529 | 来源:发表于2020-09-21 10:06 被阅读0次

使用Postman发送xml Post请求

Geoserver的原子操作(增删改查)需要发送XML文件进行请求。

j7jaQN

Geoserver中,发送请求有两种方式,一种是实现get发送请求,另一种是使用post发送xml文件进行请求。

比如下面的例子

获取元数据

使用Get请求

http://example.com/geoserver/wfs?
  service=wfs&
  version=1.1.0&
  request=GetCapabilities

使用Post请求

<GetCapabilities
 service="WFS"
 xmlns="http://www.opengis.net/wfs"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://www.opengis.net/wfs
 http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"/>

该请求需要按照图设置即可发送请求

P5wHmz

相关文章

网友评论

      本文标题:使用Postman发送xml Post请求(Geoserver)

      本文链接:https://www.haomeiwen.com/subject/rizmyktx.html