How do I POST XML data to a webservice with Postman?

XmlWeb ServicesPostPostman

Xml Problem Overview


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?

Xml Solutions


Solution 1 - Xml

Send XML requests with the raw data type, then set the Content-Type to text/xml.


  1. After creating a request, use the dropdown to change the request type to POST.

    Set request type to POST

  2. Open the Body tab and check the data type for raw.

    Setting data type to raw

  3. Open the Content-Type selection box that appears to the right and select either XML (application/xml) or XML (text/xml)

Selecting content-type text/xml

  1. Enter your raw XML data into the input field below

Example of XML request in Postman

  1. Click Send to submit your XML Request to the specified server.

Clicking the Send button

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionStevoisiakView Question on Stackoverflow
Solution 1 - XmlStevoisiakView Answer on Stackoverflow