WebService

<back to all web services

ERAS2ClientNotificationRequest

namespace EndianUpdaterLicenser

open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type ERAS2ClientNotification() = 
        member val noteID:Int64 = new Int64() with get,set
        member val infotext:String = null with get,set
        member val valid_from:DateTime = new DateTime() with get,set
        member val valid_to:Nullable<DateTime> = new Nullable<DateTime>() with get,set
        member val valid_version:String = null with get,set
        member val license:String = null with get,set

    [<AllowNullLiteral>]
    type ERAS2ClientNotificationResponse() = 
        member val notifications:ResizeArray<ERAS2ClientNotification> = new ResizeArray<ERAS2ClientNotification>() with get,set

    [<AllowNullLiteral>]
    type ERAS2ClientNotificationRequest() = 
        member val eras2_version:String = null with get,set
        member val eras2_license:String = null with get,set
        member val CallingOS:String = null with get,set
        member val CallingOSArchitecture:String = null with get,set
        member val LocalIP:String = null with get,set
        member val CallingHost:String = null with get,set
        member val CallingUser:String = null with get,set
        member val CallingDomain:String = null with get,set

F# ERAS2ClientNotificationRequest DTOs

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 /xml/reply/ERAS2ClientNotificationRequest HTTP/1.1 
Host: 52.142.207.43 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<ecUpdaterLicenseCommModel.ERAS2ClientNotificationRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EndianUpdaterLicenser">
  <CallingDomain>String</CallingDomain>
  <CallingHost>String</CallingHost>
  <CallingOS>String</CallingOS>
  <CallingOSArchitecture>String</CallingOSArchitecture>
  <CallingUser>String</CallingUser>
  <LocalIP>String</LocalIP>
  <eras2_license>String</eras2_license>
  <eras2_version>String</eras2_version>
</ecUpdaterLicenseCommModel.ERAS2ClientNotificationRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<ecUpdaterLicenseCommModel.ERAS2ClientNotificationResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EndianUpdaterLicenser">
  <notifications>
    <ecUpdaterLicenseCommModel.ERAS2ClientNotification>
      <infotext>String</infotext>
      <license>String</license>
      <noteID>0</noteID>
      <valid_from>0001-01-01T00:00:00</valid_from>
      <valid_to>0001-01-01T00:00:00</valid_to>
      <valid_version>String</valid_version>
    </ecUpdaterLicenseCommModel.ERAS2ClientNotification>
  </notifications>
</ecUpdaterLicenseCommModel.ERAS2ClientNotificationResponse>