FrameAppWS

<back to all web services

CreateUserAdm

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

Namespace Global

    Namespace Administrador.Modelo

        Public Partial Class NovedadesCarga
            Public Overridable Property Fila As Integer
            Public Overridable Property Columna As Integer
            Public Overridable Property TipoError As String
            Public Overridable Property Novedad As String
        End Class
    End Namespace

    Namespace Administrador.Modelo.Tipos

        Public Partial Class CreateUserAdm
            Inherits GuardarDatosFormaRS
            Public Sub New()
                DatosLlaveMaestro = New Dictionary(Of String, Object)
                NovedadesDetalles = New List(Of GuardarDatosFormaDetalleRS)
            End Sub

            Public Overridable Property Identificacion As String
            Public Overridable Property Nombres As String
            Public Overridable Property Direccion As String
            Public Overridable Property Telefonos As String
            Public Overridable Property Email As String
            Public Overridable Property UsuarioCreo As String
            Public Overridable Property Estado As String
            Public Overridable Property LoginAdicional As String
            Public Overridable Property ID As Long
            Public Overridable Property CodSistema As Integer
            Public Overridable Property CodEmpresa As Integer
            Public Overridable Property Success As Boolean
            Public Overridable Property [Error] As String
            Public Overridable Property DatosLlaveMaestro As Dictionary(Of String, Object)
            Public Overridable Property NovedadesDetalles As List(Of GuardarDatosFormaDetalleRS)
            Public Overridable Property RespuestaProcAlmacenado As ExecuteDBFunctionRS
        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

        Public Partial Class GuardarDatosFormaDetalleRS
            Public Sub New()
                Novedades = New List(Of NovedadesCarga)
            End Sub

            Public Overridable Property IDDetalle As Decimal
            Public Overridable Property Novedades As List(Of NovedadesCarga)
        End Class

        Public Partial Class GuardarDatosFormaRS
            Public Sub New()
                DatosLlaveMaestro = New Dictionary(Of String, Object)
                NovedadesDetalles = New List(Of GuardarDatosFormaDetalleRS)
            End Sub

            Public Overridable Property Success As Boolean
            Public Overridable Property [Error] As String
            Public Overridable Property DatosLlaveMaestro As Dictionary(Of String, Object)
            Public Overridable Property NovedadesDetalles As List(Of GuardarDatosFormaDetalleRS)
            Public Overridable Property RespuestaProcAlmacenado As ExecuteDBFunctionRS
        End Class
    End Namespace
End Namespace

VB.NET CreateUserAdm 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 /admin/crearusuario HTTP/1.1 
Host: soluser-recaudo.sgsas.co 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<CreateUserAdm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos">
  <DatosLlaveMaestro xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringanyType>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value />
    </d2p1:KeyValueOfstringanyType>
  </DatosLlaveMaestro>
  <Error>String</Error>
  <NovedadesDetalles>
    <GuardarDatosFormaDetalleRS>
      <IDDetalle>0</IDDetalle>
      <Novedades xmlns:d4p1="http://schemas.datacontract.org/2004/07/Administrador.Modelo">
        <d4p1:NovedadesCarga>
          <d4p1:Columna>0</d4p1:Columna>
          <d4p1:Fila>0</d4p1:Fila>
          <d4p1:Novedad>String</d4p1:Novedad>
          <d4p1:TipoError>String</d4p1:TipoError>
        </d4p1:NovedadesCarga>
      </Novedades>
    </GuardarDatosFormaDetalleRS>
  </NovedadesDetalles>
  <RespuestaProcAlmacenado>
    <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>
  </RespuestaProcAlmacenado>
  <Success>false</Success>
  <CodEmpresa>0</CodEmpresa>
  <CodSistema>0</CodSistema>
  <Direccion>String</Direccion>
  <Email>String</Email>
  <Estado>String</Estado>
  <ID>0</ID>
  <Identificacion>String</Identificacion>
  <LoginAdicional>String</LoginAdicional>
  <Nombres>String</Nombres>
  <Telefonos>String</Telefonos>
  <UsuarioCreo>String</UsuarioCreo>
</CreateUserAdm>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<GuardarDatosFormaRS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos">
  <DatosLlaveMaestro xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:KeyValueOfstringanyType>
      <d2p1:Key>String</d2p1:Key>
      <d2p1:Value />
    </d2p1:KeyValueOfstringanyType>
  </DatosLlaveMaestro>
  <Error>String</Error>
  <NovedadesDetalles>
    <GuardarDatosFormaDetalleRS>
      <IDDetalle>0</IDDetalle>
      <Novedades xmlns:d4p1="http://schemas.datacontract.org/2004/07/Administrador.Modelo">
        <d4p1:NovedadesCarga>
          <d4p1:Columna>0</d4p1:Columna>
          <d4p1:Fila>0</d4p1:Fila>
          <d4p1:Novedad>String</d4p1:Novedad>
          <d4p1:TipoError>String</d4p1:TipoError>
        </d4p1:NovedadesCarga>
      </Novedades>
    </GuardarDatosFormaDetalleRS>
  </NovedadesDetalles>
  <RespuestaProcAlmacenado>
    <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>
  </RespuestaProcAlmacenado>
  <Success>false</Success>
</GuardarDatosFormaRS>