如何使用Postman将XML数据发布到Web服务? [英] How do I POST XML data to a webservice with Postman?
问题描述
我想使用Postman将XML请求发布到Web服务.但是,当我检查可用的请求格式时,只能看到form-data
,x-www-form-urlencoded
,raw
和binary
的选项.
如何使用Postman将XML请求发布到Web服务?
使用raw
数据类型发送XML请求,然后将Content-Type设置为text/xml
.
-
创建请求后,使用下拉菜单将请求类型更改为 POST .
-
打开正文标签,并检查原始的数据类型.
-
打开右侧显示的内容类型"选择框,然后选择 XML(application/xml)或 XML(text/xml) >
-
在下面的输入字段中输入原始XML数据
-
单击发送,以将XML请求提交到指定的服务器.
I want POST an XML request to a webservice using Postman. However, when I check the available request formats, I only see options for form-data
, x-www-form-urlencoded
, raw
, and binary
.
How do I POST an XML request to a webservice with Postman?
Send XML requests with the raw
data type, then set the Content-Type to text/xml
.
After creating a request, use the dropdown to change the request type to POST.
Open the Body tab and check the data type for raw.
Open the Content-Type selection box that appears to the right and select either XML (application/xml) or XML (text/xml)
Enter your raw XML data into the input field below
Click Send to submit your XML Request to the specified server.
这篇关于如何使用Postman将XML数据发布到Web服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!