All Verbs | /utilidades/ComText |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class CombinacionTextosRQ
{
public Integer Id = null;
public HashMap<String,Object> DatosForma = null;
public HashMap<String,Object> DatosAdicionales = null;
public Integer getId() { return Id; }
public CombinacionTextosRQ setId(Integer value) { this.Id = value; return this; }
public HashMap<String,Object> getDatosForma() { return DatosForma; }
public CombinacionTextosRQ setDatosForma(HashMap<String,Object> value) { this.DatosForma = value; return this; }
public HashMap<String,Object> getDatosAdicionales() { return DatosAdicionales; }
public CombinacionTextosRQ setDatosAdicionales(HashMap<String,Object> value) { this.DatosAdicionales = value; return this; }
}
public static class CombinacionTextosRS
{
public Boolean Success = null;
public String Res = null;
public String Error = null;
public String Texto = null;
public String Formato = null;
public Boolean isSuccess() { return Success; }
public CombinacionTextosRS setSuccess(Boolean value) { this.Success = value; return this; }
public String getRes() { return Res; }
public CombinacionTextosRS setRes(String value) { this.Res = value; return this; }
public String getError() { return Error; }
public CombinacionTextosRS setError(String value) { this.Error = value; return this; }
public String getTexto() { return Texto; }
public CombinacionTextosRS setTexto(String value) { this.Texto = value; return this; }
public String getFormato() { return Formato; }
public CombinacionTextosRS setFormato(String value) { this.Formato = 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/ComText HTTP/1.1
Host: soluser-recaudo.sgsas.co
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<CombinacionTextosRQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos">
<DatosAdicionales xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringanyType>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value />
</d2p1:KeyValueOfstringanyType>
</DatosAdicionales>
<DatosForma xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringanyType>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value />
</d2p1:KeyValueOfstringanyType>
</DatosForma>
<Id>0</Id>
</CombinacionTextosRQ>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <CombinacionTextosRS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos"> <Error>String</Error> <Formato>String</Formato> <Res>String</Res> <Success>false</Success> <Texto>String</Texto> </CombinacionTextosRS>