Now click on the Tests tab so that we can define the code that Postman will use to automatically check the response for accuracy. Now click on the Body tab, and paste the following XML request: Next, click on the Headers tab so that you can input the two required HTTP headers into your request configuration: SOAPAction: "" ![]() Next, just to the right of POST, add the URL for the web service, in this case: (Note that installing the App for Windows, Mac, or Linux is preferred over installing Postman for Chrome.)Īfter starting Postman, simply click on a new tab (one with a + sign) and then begin by selecting POST from the dropdown. ![]() If you don’t already have a copy of Postman, please visit this page: ![]() The purpose of the web service is to convert temperatures and it will demonstrate how Postman can be configured to test the accuracy of the response returned by the web service. The following tutorial will detail using Postman to develop a test of a XML web service. However, it is often overlooked that Postman can also be used to perform and automate testing of web services. Postman has become a popular ad hoc tool for use when developing new web services.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |