All Verbs | /Utilidades/Formas/GuardarDatos |
---|
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using Administrador.Modelo.Tipos;
using Administrador.Modelo;
namespace Administrador.Modelo
{
public partial class NovedadesCarga
{
public virtual int Fila { get; set; }
public virtual int Columna { get; set; }
public virtual string TipoError { get; set; }
public virtual string Novedad { get; set; }
}
}
namespace Administrador.Modelo.Tipos
{
public partial class ExecuteDBFunctionRS
: GeneralRS
{
public virtual Object Respuesta { get; set; }
public virtual decimal IDEjecucion { get; set; }
public virtual string URLArchivo { get; set; }
public virtual string TipoRespuesta { get; set; }
public virtual bool Background { get; set; }
public virtual long TiempoRespuestaBD { get; set; }
public virtual long TiempoRespuestaTotal { get; set; }
///<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 virtual int Codigo { get; set; }
///<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 virtual string Mensaje { get; set; }
}
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 virtual int Codigo { get; set; }
///<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 virtual string Mensaje { get; set; }
}
public partial class GuardarDatosDetalle
{
public GuardarDatosDetalle()
{
DatosInsert = new List<Dictionary<String,Object>>{};
DatosUpdate = new List<Dictionary<String,Object>>{};
DatosDelete = new List<Dictionary<String,Object>>{};
}
public virtual int IDDetalle { get; set; }
public virtual List<Dictionary<String,Object>> DatosInsert { get; set; }
public virtual List<Dictionary<String,Object>> DatosUpdate { get; set; }
public virtual List<Dictionary<String,Object>> DatosDelete { get; set; }
public virtual string NombreArchivo { get; set; }
}
public partial class GuardarDatosFormaDetalleRS
{
public GuardarDatosFormaDetalleRS()
{
Novedades = new List<NovedadesCarga>{};
}
public virtual decimal IDDetalle { get; set; }
public virtual List<NovedadesCarga> Novedades { get; set; }
}
public partial class GuardarDatosFormaRQ
{
public GuardarDatosFormaRQ()
{
DatosMaestro = new Dictionary<string, Object>{};
DatosDetalle = new List<GuardarDatosDetalle>{};
FormasDep = new List<GuardarDatosFormaRQ>{};
}
public virtual int IDForma { get; set; }
public virtual OperacionDatos Operacion { get; set; }
public virtual Dictionary<string, Object> DatosMaestro { get; set; }
public virtual List<GuardarDatosDetalle> DatosDetalle { get; set; }
public virtual List<GuardarDatosFormaRQ> FormasDep { get; set; }
public virtual string TokenCargaArchivos { get; set; }
}
public partial class GuardarDatosFormaRS
{
public GuardarDatosFormaRS()
{
DatosLlaveMaestro = new Dictionary<string, Object>{};
NovedadesDetalles = new List<GuardarDatosFormaDetalleRS>{};
}
public virtual bool Success { get; set; }
public virtual string Error { get; set; }
public virtual Dictionary<string, Object> DatosLlaveMaestro { get; set; }
public virtual List<GuardarDatosFormaDetalleRS> NovedadesDetalles { get; set; }
public virtual ExecuteDBFunctionRS RespuestaProcAlmacenado { get; set; }
}
public enum OperacionDatos
{
INSERT,
UPDATE,
DELETE,
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Utilidades/Formas/GuardarDatos HTTP/1.1
Host: soluser-recaudo.sgsas.co
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GuardarDatosFormaRQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos">
<DatosDetalle>
<GuardarDatosDetalle>
<DatosDelete xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:ArrayOfKeyValueOfstringanyType>
<d4p1:KeyValueOfstringanyType>
<d4p1:Key>String</d4p1:Key>
<d4p1:Value />
</d4p1:KeyValueOfstringanyType>
</d4p1:ArrayOfKeyValueOfstringanyType>
</DatosDelete>
<DatosInsert xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:ArrayOfKeyValueOfstringanyType>
<d4p1:KeyValueOfstringanyType>
<d4p1:Key>String</d4p1:Key>
<d4p1:Value />
</d4p1:KeyValueOfstringanyType>
</d4p1:ArrayOfKeyValueOfstringanyType>
</DatosInsert>
<DatosUpdate xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:ArrayOfKeyValueOfstringanyType>
<d4p1:KeyValueOfstringanyType>
<d4p1:Key>String</d4p1:Key>
<d4p1:Value />
</d4p1:KeyValueOfstringanyType>
</d4p1:ArrayOfKeyValueOfstringanyType>
</DatosUpdate>
<IDDetalle>0</IDDetalle>
<NombreArchivo>String</NombreArchivo>
</GuardarDatosDetalle>
</DatosDetalle>
<DatosMaestro xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringanyType>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value />
</d2p1:KeyValueOfstringanyType>
</DatosMaestro>
<FormasDep>
<GuardarDatosFormaRQ>
<DatosDetalle>
<GuardarDatosDetalle>
<DatosDelete xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:ArrayOfKeyValueOfstringanyType>
<d6p1:KeyValueOfstringanyType>
<d6p1:Key>String</d6p1:Key>
<d6p1:Value />
</d6p1:KeyValueOfstringanyType>
</d6p1:ArrayOfKeyValueOfstringanyType>
</DatosDelete>
<DatosInsert xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:ArrayOfKeyValueOfstringanyType>
<d6p1:KeyValueOfstringanyType>
<d6p1:Key>String</d6p1:Key>
<d6p1:Value />
</d6p1:KeyValueOfstringanyType>
</d6p1:ArrayOfKeyValueOfstringanyType>
</DatosInsert>
<DatosUpdate xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:ArrayOfKeyValueOfstringanyType>
<d6p1:KeyValueOfstringanyType>
<d6p1:Key>String</d6p1:Key>
<d6p1:Value />
</d6p1:KeyValueOfstringanyType>
</d6p1:ArrayOfKeyValueOfstringanyType>
</DatosUpdate>
<IDDetalle>0</IDDetalle>
<NombreArchivo>String</NombreArchivo>
</GuardarDatosDetalle>
</DatosDetalle>
<DatosMaestro xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfstringanyType>
<d4p1:Key>String</d4p1:Key>
<d4p1:Value />
</d4p1:KeyValueOfstringanyType>
</DatosMaestro>
<FormasDep>
<GuardarDatosFormaRQ>
<DatosDetalle>
<GuardarDatosDetalle>
<DatosDelete xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d8p1:ArrayOfKeyValueOfstringanyType>
<d8p1:KeyValueOfstringanyType>
<d8p1:Key>String</d8p1:Key>
<d8p1:Value />
</d8p1:KeyValueOfstringanyType>
</d8p1:ArrayOfKeyValueOfstringanyType>
</DatosDelete>
<DatosInsert xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d8p1:ArrayOfKeyValueOfstringanyType>
<d8p1:KeyValueOfstringanyType>
<d8p1:Key>String</d8p1:Key>
<d8p1:Value />
</d8p1:KeyValueOfstringanyType>
</d8p1:ArrayOfKeyValueOfstringanyType>
</DatosInsert>
<DatosUpdate xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d8p1:ArrayOfKeyValueOfstringanyType>
<d8p1:KeyValueOfstringanyType>
<d8p1:Key>String</d8p1:Key>
<d8p1:Value />
</d8p1:KeyValueOfstringanyType>
</d8p1:ArrayOfKeyValueOfstringanyType>
</DatosUpdate>
<IDDetalle>0</IDDetalle>
<NombreArchivo>String</NombreArchivo>
</GuardarDatosDetalle>
</DatosDetalle>
<DatosMaestro xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:KeyValueOfstringanyType>
<d6p1:Key>String</d6p1:Key>
<d6p1:Value />
</d6p1:KeyValueOfstringanyType>
</DatosMaestro>
<FormasDep>
<GuardarDatosFormaRQ>
<DatosDetalle>
<GuardarDatosDetalle>
<DatosDelete xmlns:d10p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d10p1:ArrayOfKeyValueOfstringanyType>
<d10p1:KeyValueOfstringanyType>
<d10p1:Key>String</d10p1:Key>
<d10p1:Value />
</d10p1:KeyValueOfstringanyType>
</d10p1:ArrayOfKeyValueOfstringanyType>
</DatosDelete>
<DatosInsert xmlns:d10p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d10p1:ArrayOfKeyValueOfstringanyType>
<d10p1:KeyValueOfstringanyType>
<d10p1:Key>String</d10p1:Key>
<d10p1:Value />
</d10p1:KeyValueOfstringanyType>
</d10p1:ArrayOfKeyValueOfstringanyType>
</DatosInsert>
<DatosUpdate xmlns:d10p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d10p1:ArrayOfKeyValueOfstringanyType>
<d10p1:KeyValueOfstringanyType>
<d10p1:Key>String</d10p1:Key>
<d10p1:Value />
</d10p1:KeyValueOfstringanyType>
</d10p1:ArrayOfKeyValueOfstringanyType>
</DatosUpdate>
<IDDetalle>0</IDDetalle>
<NombreArchivo>String</NombreArchivo>
</GuardarDatosDetalle>
</DatosDetalle>
<DatosMaestro xmlns:d8p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d8p1:KeyValueOfstringanyType>
<d8p1:Key>String</d8p1:Key>
<d8p1:Value />
</d8p1:KeyValueOfstringanyType>
</DatosMaestro>
<FormasDep i:nil="true" />
<IDForma>0</IDForma>
<Operacion>INSERT</Operacion>
<TokenCargaArchivos>String</TokenCargaArchivos>
</GuardarDatosFormaRQ>
</FormasDep>
<IDForma>0</IDForma>
<Operacion>INSERT</Operacion>
<TokenCargaArchivos>String</TokenCargaArchivos>
</GuardarDatosFormaRQ>
</FormasDep>
<IDForma>0</IDForma>
<Operacion>INSERT</Operacion>
<TokenCargaArchivos>String</TokenCargaArchivos>
</GuardarDatosFormaRQ>
</FormasDep>
<IDForma>0</IDForma>
<Operacion>INSERT</Operacion>
<TokenCargaArchivos>String</TokenCargaArchivos>
</GuardarDatosFormaRQ>
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>