Class SoapMessageValidator
java.lang.Object
com.aquima.interactions.communication.impl.validator.SoapMessageValidator
Class that can be used to validate a soap message.
- Since:
- 9.0
- Author:
- Nicky van Noorloos, Jon van Leuven
-
Constructor Summary
ConstructorsConstructorDescriptionSoapMessageValidator
(ISoapMessageDefinition message, ISchemaSetDefinition schemaSet, ISchemaContract contract) Construct a soap message validator for a message definition, schema set and contract definition. -
Method Summary
-
Constructor Details
-
SoapMessageValidator
public SoapMessageValidator(ISoapMessageDefinition message, ISchemaSetDefinition schemaSet, ISchemaContract contract) Construct a soap message validator for a message definition, schema set and contract definition.- Parameters:
message
- The message definition, may not be null.schemaSet
- The schema set defintion, may not be null.contract
- The contract definition, may not be null.
-
-
Method Details
-
validate
This method may be used to validate the provided xml.- Parameters:
xml
- The xml, may not be null or empty.- Throws:
XmlValidationException
- Is thrown when the xml does not validate against the definition(s).
-