All Verbs | /Utilidades/Archivos/UploadFileRQ |
---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class UploadFileRS implements IConvertible
{
bool? Success;
String? Error;
UploadFileRS({this.Success,this.Error});
UploadFileRS.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Success = json['Success'];
Error = json['Error'];
return this;
}
Map<String, dynamic> toJson() => {
'Success': Success,
'Error': Error
};
getTypeName() => "UploadFileRS";
TypeContext? context = _ctx;
}
class UploadFileRQ implements IConvertible
{
String? path;
String? carp_carp;
UploadFileRQ({this.path,this.carp_carp});
UploadFileRQ.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
path = json['path'];
carp_carp = json['carp_carp'];
return this;
}
Map<String, dynamic> toJson() => {
'path': path,
'carp_carp': carp_carp
};
getTypeName() => "UploadFileRQ";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'soluser_recaudo.sgsas.co', types: <String, TypeInfo> {
'UploadFileRS': TypeInfo(TypeOf.Class, create:() => UploadFileRS()),
'UploadFileRQ': TypeInfo(TypeOf.Class, create:() => UploadFileRQ()),
});
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 /Utilidades/Archivos/UploadFileRQ HTTP/1.1
Host: soluser-recaudo.sgsas.co
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<UploadFileRQ xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.General">
<carp_carp>String</carp_carp>
<path>String</path>
</UploadFileRQ>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <UploadFileRS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Administrador.Modelo.General"> <Error>String</Error> <Success>false</Success> </UploadFileRS>