Validate XML against WSDL for outbound SOAP request

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-08-2022 07:46 PM
I have a requirement to validate XML request payload against the WSDL before sending Outbound SOAP request. e.g. checking mandatory attributes, attribute length, minimum/maximum occurrence, etc.
The XML validation against WSDL is available in SOAP UI tool but I was looking for a similar solution within ServiceNow.
Below is a sample screenshot from SOAP UI highlighting the type of validation I am looking for.
Is there a way in ServiceNow to perform such validation before triggering Outbound SOAP call?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-09-2022 04:06 PM
Unfortunately, I'm afraid there is no functionality built into the platform that would allow you to dynamically validate your XML payload agains the WSDL before you trigger a SOAP call. That has always been a manual part of the development process; ensuring that you have appropriate values defined in your parameters before executing the call.
Sorry that I don't have better news to share!
I hope this helps!
If this was helpful, or correct, please be kind and mark the answer appropriately.
Michael Jones - Proud member of the GlideFast Consulting Team!
Michael D. Jones
Proud member of the GlideFast Consulting Team!