FrameAppWS

<back to all web services

ExecuteDBFunctionRQ

Requires Authentication
The following routes are available for this service:
All Verbs/utilidades/executeDBFunction
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class ExecuteDBFunctionRQ
    {
        public String NombreServicio = null;
        public HashMap<String,Object> Parametros = null;
        
        public String getNombreServicio() { return NombreServicio; }
        public ExecuteDBFunctionRQ setNombreServicio(String value) { this.NombreServicio = value; return this; }
        public HashMap<String,Object> getParametros() { return Parametros; }
        public ExecuteDBFunctionRQ setParametros(HashMap<String,Object> value) { this.Parametros = value; return this; }
    }

    public static class ExecuteDBFunctionRS extends GeneralRS
    {
        public Object Respuesta = null;
        public BigDecimal IDEjecucion = null;
        public String URLArchivo = null;
        public String TipoRespuesta = null;
        public Boolean Background = null;
        public Long TiempoRespuestaBD = null;
        public Long TiempoRespuestaTotal = null;
        /**
        * Id del código de respuesta 1: Correcto, -1: Error
        */
        @ApiMember(DataType="int", Description="Id del código de respuesta 1: Correcto, -1: Error", IsRequired=true, ParameterType="body")
        public Integer Codigo = null;

        /**
        * Mensaje que se envía al ejecutar el servicio
        */
        @ApiMember(DataType="string", Description="Mensaje que se envía al ejecutar el servicio", IsRequired=true, ParameterType="body")
        public String Mensaje = null;
        
        public Object getRespuesta() { return Respuesta; }
        public ExecuteDBFunctionRS setRespuesta(Object value) { this.Respuesta = value; return this; }
        public BigDecimal getIdEjecucion() { return IDEjecucion; }
        public ExecuteDBFunctionRS setIdEjecucion(BigDecimal value) { this.IDEjecucion = value; return this; }
        public String getUrlArchivo() { return URLArchivo; }
        public ExecuteDBFunctionRS setUrlArchivo(String value) { this.URLArchivo = value; return this; }
        public String getTipoRespuesta() { return TipoRespuesta; }
        public ExecuteDBFunctionRS setTipoRespuesta(String value) { this.TipoRespuesta = value; return this; }
        public Boolean isBackground() { return Background; }
        public ExecuteDBFunctionRS setBackground(Boolean value) { this.Background = value; return this; }
        public Long getTiempoRespuestaBD() { return TiempoRespuestaBD; }
        public ExecuteDBFunctionRS setTiempoRespuestaBD(Long value) { this.TiempoRespuestaBD = value; return this; }
        public Long getTiempoRespuestaTotal() { return TiempoRespuestaTotal; }
        public ExecuteDBFunctionRS setTiempoRespuestaTotal(Long value) { this.TiempoRespuestaTotal = value; return this; }
        public Integer getCodigo() { return Codigo; }
        public ExecuteDBFunctionRS setCodigo(Integer value) { this.Codigo = value; return this; }
        public String getMensaje() { return Mensaje; }
        public ExecuteDBFunctionRS setMensaje(String value) { this.Mensaje = value; return this; }
    }

    public static class GeneralRS
    {
        /**
        * Id del código de respuesta 1: Correcto, -1: Error
        */
        @ApiMember(DataType="int", Description="Id del código de respuesta 1: Correcto, -1: Error", IsRequired=true, ParameterType="body")
        public Integer Codigo = null;

        /**
        * Mensaje que se envía al ejecutar el servicio
        */
        @ApiMember(DataType="string", Description="Mensaje que se envía al ejecutar el servicio", IsRequired=true, ParameterType="body")
        public String Mensaje = null;
        
        public Integer getCodigo() { return Codigo; }
        public GeneralRS setCodigo(Integer value) { this.Codigo = value; return this; }
        public String getMensaje() { return Mensaje; }
        public GeneralRS setMensaje(String value) { this.Mensaje = value; return this; }
    }

}

Java ExecuteDBFunctionRQ DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /utilidades/executeDBFunction HTTP/1.1 
Host: soluser-recaudo.sgsas.co 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<ExecuteDBFunctionRQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos">
  <NombreServicio>String</NombreServicio>
  <Parametros xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringanyType>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value />
    </d2p1:KeyValueOfstringanyType>
  </Parametros>
</ExecuteDBFunctionRQ>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ExecuteDBFunctionRS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos">
  <Codigo>0</Codigo>
  <Mensaje>String</Mensaje>
  <Background>false</Background>
  <IDEjecucion>0</IDEjecucion>
  <Respuesta />
  <TiempoRespuestaBD>0</TiempoRespuestaBD>
  <TiempoRespuestaTotal>0</TiempoRespuestaTotal>
  <TipoRespuesta>String</TipoRespuesta>
  <URLArchivo>String</URLArchivo>
</ExecuteDBFunctionRS>