Class WSDLDocument

  • All Implemented Interfaces:
    Peer

    public class WSDLDocument
    extends WSDLNode
    WSDLDocument is the top node in the overall WSDL DOM.
    • Constructor Detail

      • WSDLDocument

        public WSDLDocument()
    • Method Detail

      • loadFromFile

        public static WSDLDocument loadFromFile​(java.lang.String sFilename,
                                                java.lang.String sLoadOptions)
        Loads a file/datasource into a document from a file, and creates an abstract schema hierarchy for it.
        Parameters:
        sFilename - - the name of the file that contains the data to load.
        sLoadOptions - - (optional) loading options.
        Returns:
        The created abstract schema model
        Throws:
        AS_INVALIDDTDEXCEPTION - - thrown if an invalid DTD definition is encountered
        AS_CREATESCHEMAEXCEPTION - - thrown if failed to load and create an XML Schema definition
        AS_INVALIDELEMENTNAMEEXCEPTION - - thrown if schema defines an invalid name for an element declaration
      • loadFromStream

        public static WSDLDocument loadFromStream​(java.io.InputStream oStream,
                                                  java.lang.String sFilename,
                                                  java.lang.String sLoadOptions)
        Loads a file/datasource into a model from a stream, and creates an abstract schema hierarchy for it.
        Parameters:
        oStream - - The stream that contains the data to load.
        sFilename - - Input file name.
        sLoadOptions - - (optional) loading options.
        Returns:
        The created abstract schema model
        Throws:
        AS_INVALIDDTDEXCEPTION - - thrown if an invalid DTD definition is encountered
        AS_CREATESCHEMAEXCEPTION - - thrown if failed to load and create an XML Schema definition
        AS_INVALIDELEMENTNAMEEXCEPTION - - thrown if schema defines an invalid name for an element declaration
      • getDefinitionsNode

        public WSDLNode getDefinitionsNode()
        Get the definitions node
        Returns:
        the WSDLNode that is the definitions node of type WSDL_DEFINITIONS
      • getTargetNS

        public java.lang.String getTargetNS()
        Get the target namespace specifed by the WSDL
        Returns:
        the target namespace URI
      • getOpenFileName

        public java.lang.String getOpenFileName()
        Get the uri where this WSDL originally resides
        Returns:
        the uri where this WSDL originally resides
      • getCurrentFileName

        public java.lang.String getCurrentFileName()