WebService

<back to all web services

Alive

import 'package:servicestack/servicestack.dart';

class AliveResponse implements IConvertible
{
    String? Antwort;

    AliveResponse({this.Antwort});
    AliveResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Antwort = json['Antwort'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Antwort': Antwort
    };

    getTypeName() => "AliveResponse";
    TypeContext? context = _ctx;
}

class Alive implements IConvertible
{
    String? Anfrage;
    String? CallingUser;
    String? CallingHost;
    String? CallingOS;
    String? LocalIP;

    Alive({this.Anfrage,this.CallingUser,this.CallingHost,this.CallingOS,this.LocalIP});
    Alive.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        Anfrage = json['Anfrage'];
        CallingUser = json['CallingUser'];
        CallingHost = json['CallingHost'];
        CallingOS = json['CallingOS'];
        LocalIP = json['LocalIP'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'Anfrage': Anfrage,
        'CallingUser': CallingUser,
        'CallingHost': CallingHost,
        'CallingOS': CallingOS,
        'LocalIP': LocalIP
    };

    getTypeName() => "Alive";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: '52.142.207.43', types: <String, TypeInfo> {
    'AliveResponse': TypeInfo(TypeOf.Class, create:() => AliveResponse()),
    'Alive': TypeInfo(TypeOf.Class, create:() => Alive()),
});

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

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

<ecUpdaterLicenseCommModel.AliveResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EndianUpdaterLicenser">
  <Antwort>String</Antwort>
</ecUpdaterLicenseCommModel.AliveResponse>