Class SoapWebServiceDocument

    • Constructor Detail

      • SoapWebServiceDocument

        public SoapWebServiceDocument()

        Creates a handle for a SoapWebService output without providing a source document.
        This shall always return null, in case getSourceDataHandler() is called and is recommended for webservices, that don't require a source document. (Such as the URL-Converter.)

        Be aware: Most webservices require a source document, with few exceptions. Before using this, make sure that this is valid for the WebService call you intend to execute.

        Be aware: A SoapDocument is using DataHandlers, that might require closing to prevent resource leaks. You should always close() SoapDocuments.

    • Method Detail

      • getSourceDataHandler

        @Nullable
        public @Nullable jakarta.activation.DataHandler getSourceDataHandler()
        Returns a DataHandler for the document's source - may return null in case no source document has been selected.
        Specified by:
        getSourceDataHandler in interface SoapDocument
        Returns:
        A DataHandler for the document's source.
      • setResult

        public void setResult​(@Nullable
                              @Nullable jakarta.activation.DataHandler result)
        Sets the result DataHandler, that represents the current result of a SoapWebService call for this SoapDocument.
        Specified by:
        setResult in interface SoapDocument
        Parameters:
        result - The result DataHandler, that represents the current result of a SoapWebService call.
      • getResult

        @Nullable
        public @Nullable jakarta.activation.DataHandler getResult()
        Returns the result DataHandler, that represents the current result of a SoapWebService call for this SoapDocument. (May return null, should such a result not exist.)
        Specified by:
        getResult in interface SoapDocument
        Returns:
        The result DataHandler, that represents the current result of a SoapWebService call.