Class SoapMessageValidator

java.lang.Object
io.github.microcks.util.soap.SoapMessageValidator

public class SoapMessageValidator extends Object
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 Details

  • Method Details

    • validateSoapEnvelope

      public static List<String> validateSoapEnvelope(String message)
      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 String
      partQName - The qualified name of the element that is expected into Soap body.
      message - The Soap message as a String
      resourceUrl - AN optional resource url where includes in WSDL may be resolved
      Returns:
      A list of validation error that's empty if everything's ok.