Package es.gob.afirma.wsServiceInvoker
Class Afirma5ServiceInvokerFacade
- java.lang.Object
-
- es.gob.afirma.wsServiceInvoker.Afirma5ServiceInvokerFacade
-
public final class Afirma5ServiceInvokerFacade extends java.lang.ObjectClass that represents the facade for the invocation of the web services of @Firma.
Project:Library for the integration with the services of @Firma, eVisor and TS@.
- Version:
- 1.3, 18/04/2022.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Afirma5ServiceInvokerFacadegetInstance()Gets a class instance.java.lang.StringinvokeService(java.lang.String xmlInput, java.lang.String service, java.lang.String method, java.lang.String applicationName)Invokes a @Firma service.java.lang.StringinvokeService(java.lang.String xmlInput, java.lang.String service, java.lang.String method, java.lang.String applicationName, java.lang.String idClient)Invokes a @Firma service.java.lang.StringinvokeService(java.lang.String xmlInput, java.lang.String service, java.lang.String method, java.util.Properties serviceProperties)Invokes a @Firma service, it sets a collections of properties aren't in the configuration file of component.java.lang.StringinvokeService(java.lang.String xmlInput, java.lang.String service, java.lang.String method, java.util.Properties serviceProperties, java.lang.String idClient)Invokes a @Firma service, it sets a collections of properties aren't in the configuration file of component.
-
-
-
Method Detail
-
getInstance
public static Afirma5ServiceInvokerFacade getInstance()
Gets a class instance.- Returns:
- a class instance.
-
invokeService
public java.lang.String invokeService(java.lang.String xmlInput, java.lang.String service, java.lang.String method, java.lang.String applicationName, java.lang.String idClient) throws WSServiceInvokerExceptionInvokes a @Firma service.- Parameters:
xmlInput- input parameter of published @Firma services.service- service name to invoke.method- method name of invoked service.applicationName- customer application name.idClient- client identifier of ws invocation.- Returns:
- String with xml format with invocation service result.
- Throws:
WSServiceInvokerException- if an error happens (connection, not avalaible service, not valid input parameters)
-
invokeService
public java.lang.String invokeService(java.lang.String xmlInput, java.lang.String service, java.lang.String method, java.lang.String applicationName) throws WSServiceInvokerExceptionInvokes a @Firma service.- Parameters:
xmlInput- input parameter of published @Firma services.service- service name to invoke.method- method name of invoked service.applicationName- customer application name.- Returns:
- String with xml format with invocation service result.
- Throws:
WSServiceInvokerException- if an error happens (connection, not avalaible service, not valid input parameters)
-
invokeService
public java.lang.String invokeService(java.lang.String xmlInput, java.lang.String service, java.lang.String method, java.util.Properties serviceProperties, java.lang.String idClient) throws WSServiceInvokerExceptionInvokes a @Firma service, it sets a collections of properties aren't in the configuration file of component.- Parameters:
xmlInput- input parameter of published @Firma services.service- service name to invoke.method- method name of invoked service.serviceProperties- collection of configuration settings to invoke service.idClient- client identifier of ws invocation.- Returns:
- String with xml format with invocation service result.
- Throws:
WSServiceInvokerException- if an error happens (connection, not avalaible service, not valid input parameters)
-
invokeService
public java.lang.String invokeService(java.lang.String xmlInput, java.lang.String service, java.lang.String method, java.util.Properties serviceProperties) throws WSServiceInvokerExceptionInvokes a @Firma service, it sets a collections of properties aren't in the configuration file of component.- Parameters:
xmlInput- input parameter of published @Firma services.service- service name to invoke.method- method name of invoked service.serviceProperties- collection of configuration settings to invoke service.- Returns:
- String with xml format with invocation service result.
- Throws:
WSServiceInvokerException- if an error happens (connection, not avalaible service, not valid input parameters)
-
-