How do I POST XML data 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.
Stevoisiak
Active programmer specializing in Python, SQL, C++, Java, and AutoHotkey. My goal is to make technology simpler to use by solving problems before users encounter them. That includes making easy-to-maintain code for anyone I collaborate with. (He/Him)
Updated on December 10, 2021Comments
-
Stevoisiak over 2 years
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
, andbinary
.How do I POST an XML request to a webservice with Postman?