| All Verbs | /UploadDocument/{ClientKey} |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class UploadDocumentWithModulTypeResponse implements IConvertible
{
String? Result;
bool? ServiceSuccessResult;
String? ErrorMesage;
UploadDocumentWithModulTypeResponse({this.Result,this.ServiceSuccessResult,this.ErrorMesage});
UploadDocumentWithModulTypeResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Result = json['Result'];
ServiceSuccessResult = json['ServiceSuccessResult'];
ErrorMesage = json['ErrorMesage'];
return this;
}
Map<String, dynamic> toJson() => {
'Result': Result,
'ServiceSuccessResult': ServiceSuccessResult,
'ErrorMesage': ErrorMesage
};
getTypeName() => "UploadDocumentWithModulTypeResponse";
TypeContext? context = _ctx;
}
class UploadDocumentWithModulType implements IConvertible
{
String? ClientKey;
String? AuthorizationID;
String? UserSSN;
String? FileName;
Uint8List? DocumentContent;
String? MimeType;
String? ModulType;
UploadDocumentWithModulType({this.ClientKey,this.AuthorizationID,this.UserSSN,this.FileName,this.DocumentContent,this.MimeType,this.ModulType});
UploadDocumentWithModulType.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
ClientKey = json['ClientKey'];
AuthorizationID = json['AuthorizationID'];
UserSSN = json['UserSSN'];
FileName = json['FileName'];
DocumentContent = JsonConverters.fromJson(json['DocumentContent'],'Uint8List',context!);
MimeType = json['MimeType'];
ModulType = json['ModulType'];
return this;
}
Map<String, dynamic> toJson() => {
'ClientKey': ClientKey,
'AuthorizationID': AuthorizationID,
'UserSSN': UserSSN,
'FileName': FileName,
'DocumentContent': JsonConverters.toJson(DocumentContent,'Uint8List',context!),
'MimeType': MimeType,
'ModulType': ModulType
};
getTypeName() => "UploadDocumentWithModulType";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'imzagerservices.eyyubiye.bel.tr', types: <String, TypeInfo> {
'UploadDocumentWithModulTypeResponse': TypeInfo(TypeOf.Class, create:() => UploadDocumentWithModulTypeResponse()),
'UploadDocumentWithModulType': TypeInfo(TypeOf.Class, create:() => UploadDocumentWithModulType()),
'Uint8List': TypeInfo(TypeOf.Class, create:() => Uint8List(0)),
});
Dart UploadDocumentWithModulType 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 /UploadDocument/{ClientKey} HTTP/1.1
Host: imzagerservices.eyyubiye.bel.tr
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<UploadDocumentWithModulType xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DaB.Imzager.Services.ServiceModel">
<AuthorizationID>String</AuthorizationID>
<ClientKey>String</ClientKey>
<DocumentContent>AA==</DocumentContent>
<FileName>String</FileName>
<MimeType>String</MimeType>
<ModulType>String</ModulType>
<UserSSN>String</UserSSN>
</UploadDocumentWithModulType>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <UploadDocumentWithModulTypeResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DaB.Imzager.Services.ServiceModel"> <ErrorMesage>String</ErrorMesage> <Result>String</Result> <ServiceSuccessResult>false</ServiceSuccessResult> </UploadDocumentWithModulTypeResponse>