Validate XML against WSDL for outbound SOAP request

Community Alums
Not applicable

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.

find_real_file.png

Is there a way in ServiceNow to perform such validation before triggering Outbound SOAP call?

1 REPLY 1

Michael Jones -
Giga Sage

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!

I hope this helps!
Michael D. Jones
Proud member of the GlideFast Consulting Team!