Class AbstractWSServiceInvoker

  • Direct Known Subclasses:
    Afirma5WebServiceInvoker, EvisorWebServiceInvoker

    public abstract class AbstractWSServiceInvoker
    extends java.lang.Object

    Class that defines the common functionality for all the classes which allow to invoke the web services of @Firma.

    Project:

    Library for the integration with the services of @Firma, eVisor and TS@.

    Version:
    1.0, 24/12/2014.
    • Constructor Detail

      • AbstractWSServiceInvoker

        public AbstractWSServiceInvoker​(java.lang.String svc)
        Constructor method for the class AbstractAfirma5ServiceInvoker.java.
        Parameters:
        svc - Parameter that represents the name of the service to invoke.
      • AbstractWSServiceInvoker

        public AbstractWSServiceInvoker​(java.lang.String svc,
                                        java.util.Properties svcInvProperties)
        Constructor method for the class AbstractAfirma5ServiceInvoker.java.
        Parameters:
        svc - Parameter that represents the name of the service to invoke.
        svcInvProperties - Parameter that represents the set of configuration parameters of the service to invoke.
      • AbstractWSServiceInvoker

        public AbstractWSServiceInvoker​(java.lang.String appName,
                                        java.lang.String svc,
                                        java.lang.String idClient,
                                        boolean isEvisor)
        Constructor method for the class AbstractAfirma5ServiceInvoker.java.
        Parameters:
        appName - Parameter that represents the name of the application which invokes the service.
        svc - Parameter that represents the name of the service to invoke.
        idClient - Parameter that represents the client application identifier.
        isEvisor - Parameter that represents if is a eVisor invocation.
    • Method Detail

      • invokeService

        public abstract java.lang.String invokeService​(java.lang.String methodName,
                                                       java.lang.Object[] parameters)
                                                throws WSServiceInvokerException
        Method that invokes a web service published by @Firma.
        Parameters:
        methodName - Parameter that represents the name of the methof to invoke.
        parameters - Parameter that represents the list of inputs.
        Returns:
        the result of the invocation on XML format.
        Throws:
        WSServiceInvokerException - If the method fails.
      • getService

        public final java.lang.String getService()
        Gets the value of the attribute service.
        Returns:
        the value of the attribute service.
      • getApplicationName

        public final java.lang.String getApplicationName()
        Gets the value of the attribute applicationName.
        Returns:
        the value of the attribute applicationName.