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/GetGatewayLogs HTTP/1.1
Host: gateway-mired.bancocuscatlan.com.gt
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GetGatewayLogs xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SmartBanking.BankAgent.ApiGateway.Providers.ApiGateway">
<BankAgentId>0</BankAgentId>
<EndDate>0001-01-01T00:00:00</EndDate>
<License>String</License>
<Operation />
<Page>0</Page>
<PageSize>0</PageSize>
<StartDate>0001-01-01T00:00:00</StartDate>
<UserId>0</UserId>
</GetGatewayLogs>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetGatewayLogsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SmartBanking.BankAgent.ApiGateway.Providers.ApiGateway">
<Count>0</Count>
<Records>
<GatewayLogModel>
<BankAgentId>0</BankAgentId>
<CipherData>String</CipherData>
<CreatedAt>0001-01-01T00:00:00</CreatedAt>
<Data>String</Data>
<Id>String</Id>
<Method>String</Method>
<Operation>String</Operation>
<OperationDescription>String</OperationDescription>
<Request>String</Request>
<Response>String</Response>
<ResponseCode>String</ResponseCode>
<ResponseException>String</ResponseException>
<ResponseMessage>String</ResponseMessage>
<ResponseTime>0</ResponseTime>
<Service>String</Service>
<ServiceUrl>String</ServiceUrl>
<TransactionId>String</TransactionId>
<UserId>0</UserId>
</GatewayLogModel>
</Records>
<ResponseStatus xmlns:d2p1="http://schemas.datacontract.org/2004/07/SmartBanking.BankAgent.ApiGateway.Services.Utils">
<ErrorCode xmlns="http://schemas.servicestack.net/types">String</ErrorCode>
<Message xmlns="http://schemas.servicestack.net/types">String</Message>
<StackTrace xmlns="http://schemas.servicestack.net/types">String</StackTrace>
<Errors xmlns="http://schemas.servicestack.net/types">
<ResponseError>
<ErrorCode>String</ErrorCode>
<FieldName>String</FieldName>
<Message>String</Message>
<Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</Meta>
</ResponseError>
</Errors>
<Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.servicestack.net/types">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</Meta>
<d2p1:AdditionalData xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringanyType>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value />
</d3p1:KeyValueOfstringanyType>
</d2p1:AdditionalData>
<d2p1:PublicDescription>String</d2p1:PublicDescription>
<d2p1:Visible>false</d2p1:Visible>
</ResponseStatus>
<TotalPages>0</TotalPages>
</GetGatewayLogsResponse>