All Verbs | /mobile/maps/layer |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GetLayerMapsRQ
{
public String Layer = null;
public String Access = null;
public String getLayer() { return Layer; }
public GetLayerMapsRQ setLayer(String value) { this.Layer = value; return this; }
public String getAccess() { return Access; }
public GetLayerMapsRQ setAccess(String value) { this.Access = value; return this; }
}
public static class GetLayerMapsRS
{
public String Code = null;
public String ErrorMessage = null;
public ArrayList<LayerData> Data = null;
public String getCode() { return Code; }
public GetLayerMapsRS setCode(String value) { this.Code = value; return this; }
public String getErrorMessage() { return ErrorMessage; }
public GetLayerMapsRS setErrorMessage(String value) { this.ErrorMessage = value; return this; }
public ArrayList<LayerData> getData() { return Data; }
public GetLayerMapsRS setData(ArrayList<LayerData> value) { this.Data = value; return this; }
}
public static class LayerData
{
public Integer code = null;
public String name = null;
public Double latitude = null;
public Double longitude = null;
public String complexinfo = null;
public Integer getCode() { return code; }
public LayerData setCode(Integer value) { this.code = value; return this; }
public String getName() { return name; }
public LayerData setName(String value) { this.name = value; return this; }
public Double getLatitude() { return latitude; }
public LayerData setLatitude(Double value) { this.latitude = value; return this; }
public Double getLongitude() { return longitude; }
public LayerData setLongitude(Double value) { this.longitude = value; return this; }
public String getComplexinfo() { return complexinfo; }
public LayerData setComplexinfo(String value) { this.complexinfo = 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 /mobile/maps/layer HTTP/1.1
Host: ws.jimsnwa.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GetLayerMapsRQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Nwa.Model.Tipos.nwa.maps">
<Access>String</Access>
<Layer>String</Layer>
</GetLayerMapsRQ>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <GetLayerMapsRS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Nwa.Model.Tipos.nwa.maps"> <Code>String</Code> <Data> <LayerData> <code>0</code> <complexinfo>String</complexinfo> <latitude>0</latitude> <longitude>0</longitude> <name>String</name> </LayerData> </Data> <ErrorMessage>String</ErrorMessage> </GetLayerMapsRS>