Package io.github.microcks.util.soap
Class SoapMessageValidator
java.lang.Object
io.github.microcks.util.soap.SoapMessageValidator
Helper class for validating Soap messages objects against their WSDL/XSD schemas. Supported versions
of Soap are Soap 1.1 and Soap 1.2.
- Author:
- laurent
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvalidateSoapEnvelope
(String message) Validate that given message has a well-formed Soap Envelope.validateSoapMessage
(String wsdlContent, QName partQName, String message, String resourceUrl) Validate a complete Soap message: Soap envelope + payload included into Soap body against a WSDL content.
-
Field Details
-
SOAP_ENVELOPE_NS
Soap 1.1 envelope public namespace.- See Also:
-
SOAP_ENVELOPE_12_NS
Soap 1.2 envelope public namespace.- See Also:
-
-
Method Details
-
validateSoapEnvelope
Validate that given message has a well-formed Soap Envelope. This could Soap 1.1 or 1.2 envelope.- Parameters:
message
- The Soap message to validate.- Returns:
- A list of validation error that's empty if everything's ok.
-
validateSoapMessage
public static List<String> validateSoapMessage(String wsdlContent, QName partQName, String message, String resourceUrl) Validate a complete Soap message: Soap envelope + payload included into Soap body against a WSDL content.- Parameters:
wsdlContent
- The reference WSDL as a StringpartQName
- The qualified name of the element that is expected into Soap body.message
- The Soap message as a StringresourceUrl
- AN optional resource url where includes in WSDL may be resolved- Returns:
- A list of validation error that's empty if everything's ok.
-