All Verbs | /restfiles/GetUsersRQ |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetUsersRQ
{
public Integer empr_empr = null;
public Integer sist_sist = null;
public Integer getEmprEmpr() { return empr_empr; }
public GetUsersRQ setEmprEmpr(Integer value) { this.empr_empr = value; return this; }
public Integer getSistSist() { return sist_sist; }
public GetUsersRQ setSistSist(Integer value) { this.sist_sist = value; return this; }
}
public static class GetUsersRS
{
public String usua_login = null;
public String usua_nombre = null;
public String getUsuaLogin() { return usua_login; }
public GetUsersRS setUsuaLogin(String value) { this.usua_login = value; return this; }
public String getUsuaNombre() { return usua_nombre; }
public GetUsersRS setUsuaNombre(String value) { this.usua_nombre = 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 /restfiles/GetUsersRQ HTTP/1.1
Host: soluser-recaudo.sgsas.co
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GetUsersRQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos">
<empr_empr>0</empr_empr>
<sist_sist>0</sist_sist>
</GetUsersRQ>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <GetUsersRS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.Tipos"> <usua_login>String</usua_login> <usua_nombre>String</usua_nombre> </GetUsersRS>