All Verbs | /Utilidades/Formas/GuardarDatos |
---|
import java.math.*
import java.util.*
import net.servicestack.client.*
open class GuardarDatosFormaRQ
{
var IDForma:Int? = null
var Operacion:OperacionDatos? = null
var DatosMaestro:HashMap<String,Object> = HashMap<String,Object>()
var DatosDetalle:ArrayList<GuardarDatosDetalle> = ArrayList<GuardarDatosDetalle>()
var FormasDep:ArrayList<GuardarDatosFormaRQ> = ArrayList<GuardarDatosFormaRQ>()
var TokenCargaArchivos:String? = null
}
enum class OperacionDatos
{
Insert,
Update,
Delete,
}
open class GuardarDatosDetalle
{
var IDDetalle:Int? = null
var DatosInsert:ArrayList<HashMap<String,Object>> = ArrayList<HashMap<String,Object>>()
var DatosUpdate:ArrayList<HashMap<String,Object>> = ArrayList<HashMap<String,Object>>()
var DatosDelete:ArrayList<HashMap<String,Object>> = ArrayList<HashMap<String,Object>>()
var NombreArchivo:String? = null
}
open class GuardarDatosFormaRS
{
var Success:Boolean? = null
var Error:String? = null
var DatosLlaveMaestro:HashMap<String,Object> = HashMap<String,Object>()
var NovedadesDetalles:ArrayList<GuardarDatosFormaDetalleRS> = ArrayList<GuardarDatosFormaDetalleRS>()
var RespuestaProcAlmacenado:ExecuteDBFunctionRS? = null
}
open class GuardarDatosFormaDetalleRS
{
var IDDetalle:BigDecimal? = null
var Novedades:ArrayList<NovedadesCarga> = ArrayList<NovedadesCarga>()
}
open class NovedadesCarga
{
var Fila:Int? = null
var Columna:Int? = null
var TipoError:String? = null
var Novedad:String? = null
}
open class ExecuteDBFunctionRS : GeneralRS()
{
var Respuesta:Object? = null
var IDEjecucion:BigDecimal? = null
var URLArchivo:String? = null
var TipoRespuesta:String? = null
var Background:Boolean? = null
var TiempoRespuestaBD:Long? = null
var TiempoRespuestaTotal:Long? = 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")
var Codigo:Int? = 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")
var Mensaje:String? = null
}
open 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")
var Codigo:Int? = 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")
var Mensaje:String? = null
}
Kotlin GuardarDatosFormaRQ DTOs
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>