Class WebServiceEngineInstance


  • public class WebServiceEngineInstance
    extends java.lang.Object
    The class used to hold the Web Service engine instance.
    Author:
    Christopher Mindus
    • Constructor Detail

      • WebServiceEngineInstance

        public WebServiceEngineInstance()
    • Method Detail

      • setInstance

        public static void setInstance​(IWebServiceEngine engine)
        Sets the Web Service engine. This can only be done once, and is intended to be done from the Server or the Designer. Do not attempt to set it.
        Parameters:
        engine - The web service engine.
        Throws:
        java.lang.IllegalStateException - If it is already set.
      • getInstance

        public static IWebServiceEngine getInstance()
        Gets the Web Service engine.
        Returns:
        The Web Service engine instance, null if not registered by the Server or the Designer.
      • getWSDLFactory

        public static WSDLFactory getWSDLFactory()
                                          throws WSDLException
        Gets the WSDLFactory.
        Returns:
        The shared factory instance.
        Throws:
        WSDLException - If the factory cannot be created.
      • createWSDLReader

        public static WSDLReader createWSDLReader​(boolean debug)
                                           throws WSDLException
        Creates a new WSDL reader with debug option.
        Parameters:
        debug - Flag for debug.
        Returns:
        The WSDL reader.
        Throws:
        WSDLException - If the factory cannot be created.
      • getSOAPMessageFactory

        public static javax.xml.soap.MessageFactory getSOAPMessageFactory()
                                                                   throws javax.xml.soap.SOAPException
        Creates or gets the SOAP message factory.
        Returns:
        The shared message factory instance.
        Throws:
        javax.xml.soap.SOAPException - If the SOAP message factory cannot be created.
      • getSOAPConnectionFactory

        public static javax.xml.soap.SOAPConnectionFactory getSOAPConnectionFactory()
                                                                             throws javax.xml.soap.SOAPException
        Creates or gets the SOAP connection factory.
        Returns:
        The connection factory.
        Throws:
        javax.xml.soap.SOAPException - If the SOAP connection factory cannot be created.