使用Postman發(fā)送xml Post請(qǐng)求
Geoserver的原子操作(增刪改查)需要發(fā)送XML文件進(jìn)行請(qǐng)求。
j7jaQN
在Geoserver中,發(fā)送請(qǐng)求有兩種方式辖源,一種是實(shí)現(xiàn)get發(fā)送請(qǐng)求誊辉,另一種是使用post發(fā)送xml文件進(jìn)行請(qǐng)求邀跃。
比如下面的例子
獲取元數(shù)據(jù)
使用Get請(qǐng)求
http://example.com/geoserver/wfs?
service=wfs&
version=1.1.0&
request=GetCapabilities
使用Post請(qǐng)求
<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"/>
該請(qǐng)求需要按照?qǐng)D設(shè)置即可發(fā)送請(qǐng)求
P5wHmz