How to test your scripted SOAP service using POSTMAN
Import
·
Mar 29, 2019
·
article
I had a hard time finding a sample or any guidance for how to test out a scripted SOAP service.
Here is one method I found that works:
- Download and install postman
- Create a new request
- Set to POST
- Use URL: https://yourinstancename.service-now.com/yourscriptedwebservicename.do?SOAP
- Authorization: BasicAuth
- Specify your the SN account username and password you will use for the interface
- Specify your the SN account username and password you will use for the interface
- Headers
- Add a key “Content-Type” and set the value to “text/xml”
- Add a key “Content-Type” and set the value to “text/xml”
- Body
- Set to POST
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:u="http://yourinstancename.service-now.com/yourscriptedsoapservicename">
<soapenv:Body>
<yourfunctionname>
<yourinputparameter>hello world</yourinputparameter>
</yourfunctionname>
</soapenv:Body>
</soapenv:Envelope>
Here is what that should look like:
View original source
https://www.servicenow.com/community/developer-articles/how-to-test-your-scripted-soap-service-using-postman/ta-p/2327869