| GET, POST | /fibuscan/Onlinehandel/DateiLaden |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class OnlinehandelDateiLadenResponse implements IConvertible
{
List<List<OnlinehandelItem>>? Liste;
OnlinehandelDateiLadenResponse({this.Liste});
OnlinehandelDateiLadenResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Liste = JsonConverters.fromJson(json['Liste'],'List<List<OnlinehandelItem>>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Liste': JsonConverters.toJson(Liste,'List<List<OnlinehandelItem>>',context!)
};
getTypeName() => "OnlinehandelDateiLadenResponse";
TypeContext? context = _ctx;
}
class OnlinehandelDateiLadenRequest implements IConvertible
{
int? ID;
OnlinehandelDateiLadenRequest({this.ID});
OnlinehandelDateiLadenRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ID = json['ID'];
return this;
}
Map<String, dynamic> toJson() => {
'ID': ID
};
getTypeName() => "OnlinehandelDateiLadenRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'ws4.fibudata.net', types: <String, TypeInfo> {
'OnlinehandelDateiLadenResponse': TypeInfo(TypeOf.Class, create:() => OnlinehandelDateiLadenResponse()),
'List<List<OnlinehandelItem>>': TypeInfo(TypeOf.Class, create:() => <List<OnlinehandelItem>>[]),
'List<OnlinehandelItem>': TypeInfo(TypeOf.Class, create:() => <OnlinehandelItem>[]),
'OnlinehandelItem': TypeInfo(TypeOf.Class, create:() => OnlinehandelItem()),
'OnlinehandelDateiLadenRequest': TypeInfo(TypeOf.Class, create:() => OnlinehandelDateiLadenRequest()),
});
Dart OnlinehandelDateiLadenRequest DTOs
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 /fibuscan/Onlinehandel/DateiLaden HTTP/1.1
Host: ws4.fibudata.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<OnlinehandelDateiLadenRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FIBUdataServiceStack.ServiceModel.Messages">
<ID>0</ID>
</OnlinehandelDateiLadenRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<OnlinehandelDateiLadenResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FIBUdataServiceStack.ServiceModel.Messages">
<Liste xmlns:d2p1="http://schemas.datacontract.org/2004/07/FIBUdataServiceStack.ServiceModel.Models">
<d2p1:ArrayOfOnlinehandelItem>
<d2p1:OnlinehandelItem>
<d2p1:col_nummer>0</d2p1:col_nummer>
<d2p1:datum>0001-01-01T00:00:00</d2p1:datum>
<d2p1:datum_string>String</d2p1:datum_string>
<d2p1:fehler>false</d2p1:fehler>
<d2p1:header>String</d2p1:header>
<d2p1:konfiguration>OrderiD</d2p1:konfiguration>
<d2p1:original>String</d2p1:original>
<d2p1:summenkonfiguration>false</d2p1:summenkonfiguration>
<d2p1:value />
<d2p1:zahl>0</d2p1:zahl>
<d2p1:zahl_string>String</d2p1:zahl_string>
</d2p1:OnlinehandelItem>
</d2p1:ArrayOfOnlinehandelItem>
</Liste>
</OnlinehandelDateiLadenResponse>