Needio.Services

<back to all web services

RegisterDeviceRequest

The following routes are available for this service:
All Verbs/RegisterDevice/
RegisterDeviceRequest Parameters:
NameParameterData TypeRequiredDescription
DevicequeryDeviceDTONo
BaseRequest Parameters:
NameParameterData TypeRequiredDescription
startformDateTimeNo
RegisterDeviceResponse Parameters:
NameParameterData TypeRequiredDescription
DeviceUUIDformstringNo
BaseResponse Parameters:
NameParameterData TypeRequiredDescription
ResultformboolNo
ResMessageformstringNo
ErrorformErrorNo
Error Parameters:
NameParameterData TypeRequiredDescription
ErrorYnformboolNo
ErrorCodeformstringNo
ErrorDescriptionformstringNo
DeviceDTO Parameters:
NameParameterData TypeRequiredDescription
DeviceUUIDformstringNo
DeviceTypeformDeviceTypesNo
SerialformstringNo
PlatformformstringNo
OsVersionformstringNo
CoBVersionformstringNo
ManufacturerformstringNo
ModelformstringNo
IsVirtualformboolNo
ActiveYnformboolNo
VersionNoformstringNo
DeviceTypes Enum:
NameValue
Unknown0
Mobile1
Web2
APIClient11
RegisterDeviceResponse Parameters:
NameParameterData TypeRequiredDescription
DeviceUUIDformstringNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /RegisterDevice/ HTTP/1.1 
Host: baseservices2.needion.com 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<RegisterDeviceRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Needio.Services.ServiceModel">
  <Device xmlns:d2p1="http://schemas.datacontract.org/2004/07/Needio.Services.ServiceModel.Models">
    <d2p1:ActiveYn>false</d2p1:ActiveYn>
    <d2p1:CoBVersion>String</d2p1:CoBVersion>
    <d2p1:DeviceType>Unknown</d2p1:DeviceType>
    <d2p1:DeviceUUID>String</d2p1:DeviceUUID>
    <d2p1:IsVirtual>false</d2p1:IsVirtual>
    <d2p1:Manufacturer>String</d2p1:Manufacturer>
    <d2p1:Model>String</d2p1:Model>
    <d2p1:OsVersion>String</d2p1:OsVersion>
    <d2p1:Platform>String</d2p1:Platform>
    <d2p1:Serial>String</d2p1:Serial>
    <d2p1:VersionNo>String</d2p1:VersionNo>
  </Device>
</RegisterDeviceRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<RegisterDeviceResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Needio.Services.ServiceModel">
  <Error>
    <ErrorCode>String</ErrorCode>
    <ErrorDescription>String</ErrorDescription>
    <ErrorYn>false</ErrorYn>
  </Error>
  <ResMessage>String</ResMessage>
  <Result>false</Result>
  <DeviceUUID>String</DeviceUUID>
</RegisterDeviceResponse>