Class WSDLSchemaReader


  • public final class WSDLSchemaReader
    extends java.lang.Object
    A utility class that reads all the schemas from a WSDL.
    • Constructor Detail

      • WSDLSchemaReader

        private WSDLSchemaReader()
    • Method Detail

      • read

        public static XMLSchemaGrammar read​(javax.xml.transform.Source wsdlSource,
                                            javax.xml.parsers.SAXParserFactory factory,
                                            GrammarReaderController2 controller)
                                     throws javax.xml.xpath.XPathExpressionException,
                                            javax.xml.transform.TransformerConfigurationException,
                                            javax.xml.transform.TransformerException
        Read the schemas from a WSDL.
        Parameters:
        wsdlSource - the WSDL, in any of the TRaX sources.
        factory - a SAX parser factory, used to obtain a SAX parser used internally in the reading process.
        controller - Object to handle errors, warnings, and provide a resolver for non-local schemas.
        Returns:
        the MSV grammar.
        Throws:
        javax.xml.xpath.XPathExpressionException
        javax.xml.transform.TransformerException
        javax.xml.transform.TransformerConfigurationException