使用Postman发送xml Post请求
Geoserver的原子操作(增删改查)需要发送XML文件进行请求。
在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"/>
该请求需要按照图设置即可发送请求