All Verbs | /Utilidades/EjecutaScriptBD |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class EjecutaScriptBDRQ
{
public BigDecimal CodigoScript = null;
public BigDecimal getCodigoScript() { return CodigoScript; }
public EjecutaScriptBDRQ setCodigoScript(BigDecimal value) { this.CodigoScript = value; return this; }
}
public static class EjecutaScriptBDRS
{
public ArrayList<LogScriptsBD> LogScript = null;
public String Error = null;
public ArrayList<LogScriptsBD> getLogScript() { return LogScript; }
public EjecutaScriptBDRS setLogScript(ArrayList<LogScriptsBD> value) { this.LogScript = value; return this; }
public String getError() { return Error; }
public EjecutaScriptBDRS setError(String value) { this.Error = value; return this; }
}
@DataContract
public static class LogScriptsBD
{
@DataMember
public BigDecimal CodigoServidor = null;
@DataMember
public BigDecimal CodigoDetalle = null;
@DataMember
public BigDecimal CodigoLog = null;
@DataMember
public BigDecimal CodigoScript = null;
@DataMember
public String SQL = null;
@DataMember
public String SQLAnt = null;
@DataMember
public String NombreServidor = null;
@DataMember
public String Mensaje = null;
@DataMember
public Date FechaEjecucion = null;
@DataMember
public String LoginAplica = null;
@DataMember
public String Estado = null;
public BigDecimal getCodigoServidor() { return CodigoServidor; }
public LogScriptsBD setCodigoServidor(BigDecimal value) { this.CodigoServidor = value; return this; }
public BigDecimal getCodigoDetalle() { return CodigoDetalle; }
public LogScriptsBD setCodigoDetalle(BigDecimal value) { this.CodigoDetalle = value; return this; }
public BigDecimal getCodigoLog() { return CodigoLog; }
public LogScriptsBD setCodigoLog(BigDecimal value) { this.CodigoLog = value; return this; }
public BigDecimal getCodigoScript() { return CodigoScript; }
public LogScriptsBD setCodigoScript(BigDecimal value) { this.CodigoScript = value; return this; }
public String getSql() { return SQL; }
public LogScriptsBD setSql(String value) { this.SQL = value; return this; }
public String getSqlAnt() { return SQLAnt; }
public LogScriptsBD setSqlAnt(String value) { this.SQLAnt = value; return this; }
public String getNombreServidor() { return NombreServidor; }
public LogScriptsBD setNombreServidor(String value) { this.NombreServidor = value; return this; }
public String getMensaje() { return Mensaje; }
public LogScriptsBD setMensaje(String value) { this.Mensaje = value; return this; }
public Date getFechaEjecucion() { return FechaEjecucion; }
public LogScriptsBD setFechaEjecucion(Date value) { this.FechaEjecucion = value; return this; }
public String getLoginAplica() { return LoginAplica; }
public LogScriptsBD setLoginAplica(String value) { this.LoginAplica = value; return this; }
public String getEstado() { return Estado; }
public LogScriptsBD setEstado(String value) { this.Estado = value; return this; }
}
}
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/EjecutaScriptBD HTTP/1.1
Host: soluser-recaudo.sgsas.co
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<EjecutaScriptBDRQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos">
<CodigoScript>0</CodigoScript>
</EjecutaScriptBDRQ>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <EjecutaScriptBDRS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos"> <Error>String</Error> <LogScript xmlns:d2p1="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Contexto"> <d2p1:LogScriptsBD> <d2p1:CodigoDetalle>0</d2p1:CodigoDetalle> <d2p1:CodigoLog>0</d2p1:CodigoLog> <d2p1:CodigoScript>0</d2p1:CodigoScript> <d2p1:CodigoServidor>0</d2p1:CodigoServidor> <d2p1:Estado>String</d2p1:Estado> <d2p1:FechaEjecucion>0001-01-01T00:00:00</d2p1:FechaEjecucion> <d2p1:LoginAplica>String</d2p1:LoginAplica> <d2p1:Mensaje>String</d2p1:Mensaje> <d2p1:NombreServidor>String</d2p1:NombreServidor> <d2p1:SQL>String</d2p1:SQL> <d2p1:SQLAnt>String</d2p1:SQLAnt> </d2p1:LogScriptsBD> </LogScript> </EjecutaScriptBDRS>