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

2020-09-21  本文已影响0人  Yo_5529

使用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
上一篇 下一篇

猜你喜欢

热点阅读