All Verbs | /mobile/maps/layer |
---|
namespace Nwa.Model.Tipos.nwa.maps
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
[<AllowNullLiteral>]
type LayerData() =
member val code:Int32 = new Int32() with get,set
member val name:String = null with get,set
member val latitude:Double = new Double() with get,set
member val longitude:Double = new Double() with get,set
member val complexinfo:String = null with get,set
[<AllowNullLiteral>]
type GetLayerMapsRS() =
member val Code:String = null with get,set
member val ErrorMessage:String = null with get,set
member val Data:ResizeArray<LayerData> = new ResizeArray<LayerData>() with get,set
[<AllowNullLiteral>]
type GetLayerMapsRQ() =
member val Layer:String = null with get,set
member val Access:String = null with get,set
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>