FrameAppWS

<back to all web services

ExecuteDBFunctionRQ

Requires Authentication
The following routes are available for this service:
All Verbs/utilidades/executeDBFunction
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports Administrador.Modelo.Tipos

Namespace Global

    Namespace Administrador.Modelo.Tipos

        Public Partial Class ExecuteDBFunctionRQ
            Public Sub New()
                Parametros = New Dictionary(Of String, Object)
            End Sub

            Public Overridable Property NombreServicio As String
            Public Overridable Property Parametros As Dictionary(Of String, Object)
        End Class

        Public Partial Class ExecuteDBFunctionRS
            Inherits GeneralRS
            Public Overridable Property Respuesta As Object
            Public Overridable Property IDEjecucion As Decimal
            Public Overridable Property URLArchivo As String
            Public Overridable Property TipoRespuesta As String
            Public Overridable Property Background As Boolean
            Public Overridable Property TiempoRespuestaBD As Long
            Public Overridable Property TiempoRespuestaTotal As Long
            '''<Summary>
            '''Id del código de respuesta 1: Correcto, -1: Error
            '''</Summary>
            <ApiMember(DataType:="int", Description:="Id del código de respuesta 1: Correcto, -1: Error", IsRequired:=true, ParameterType:="body")>
            Public Overridable Property Codigo As Integer

            '''<Summary>
            '''Mensaje que se envía al ejecutar el servicio
            '''</Summary>
            <ApiMember(DataType:="string", Description:="Mensaje que se envía al ejecutar el servicio", IsRequired:=true, ParameterType:="body")>
            Public Overridable Property Mensaje As String
        End Class

        Public Partial Class GeneralRS
            '''<Summary>
            '''Id del código de respuesta 1: Correcto, -1: Error
            '''</Summary>
            <ApiMember(DataType:="int", Description:="Id del código de respuesta 1: Correcto, -1: Error", IsRequired:=true, ParameterType:="body")>
            Public Overridable Property Codigo As Integer

            '''<Summary>
            '''Mensaje que se envía al ejecutar el servicio
            '''</Summary>
            <ApiMember(DataType:="string", Description:="Mensaje que se envía al ejecutar el servicio", IsRequired:=true, ParameterType:="body")>
            Public Overridable Property Mensaje As String
        End Class
    End Namespace
End Namespace

VB.NET ExecuteDBFunctionRQ DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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/json
Content-Type: application/json
Content-Length: length

{"NombreServicio":"String","Parametros":{"String":{}}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Respuesta":{},"IDEjecucion":0,"URLArchivo":"String","TipoRespuesta":"String","Background":false,"TiempoRespuestaBD":0,"TiempoRespuestaTotal":0,"Codigo":0,"Mensaje":"String"}