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.
GET /form25/edit/{Id} HTTP/1.1
Host: api.fxhub.co.za
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetForm25EditResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FxHubPartnersApi.ServiceModel">
<Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/FxHubPartnersApi.ServiceModel.Types">
<d2p1:AccountType>String</d2p1:AccountType>
<d2p1:BankCode>String</d2p1:BankCode>
<d2p1:BankName>String</d2p1:BankName>
<d2p1:BeneficiaryAccount>String</d2p1:BeneficiaryAccount>
<d2p1:BeneficiaryAddress>String</d2p1:BeneficiaryAddress>
<d2p1:BeneficiaryName>String</d2p1:BeneficiaryName>
<d2p1:BeneficiaryRef>String</d2p1:BeneficiaryRef>
<d2p1:BillerPayment>false</d2p1:BillerPayment>
<d2p1:BranchName>String</d2p1:BranchName>
<d2p1:CifNumber>String</d2p1:CifNumber>
<d2p1:ClientId>0</d2p1:ClientId>
<d2p1:FirstLastName>String</d2p1:FirstLastName>
<d2p1:FullNames>String</d2p1:FullNames>
<d2p1:Id>0</d2p1:Id>
<d2p1:IdNumber>String</d2p1:IdNumber>
<d2p1:IsThirdPartyPayment>false</d2p1:IsThirdPartyPayment>
<d2p1:PaymentDate>0001-01-01T00:00:00</d2p1:PaymentDate>
<d2p1:PopEmail>String</d2p1:PopEmail>
<d2p1:ProofOfPayment>String</d2p1:ProofOfPayment>
<d2p1:RandAmount>0</d2p1:RandAmount>
<d2p1:RandAmountInWords>String</d2p1:RandAmountInWords>
<d2p1:SignatoryCapacity>String</d2p1:SignatoryCapacity>
<d2p1:SignatoryIdNumber>String</d2p1:SignatoryIdNumber>
<d2p1:SignatoryName>String</d2p1:SignatoryName>
<d2p1:SignedAt>String</d2p1:SignedAt>
<d2p1:Stp>String</d2p1:Stp>
<d2p1:TransferAccountNumber>String</d2p1:TransferAccountNumber>
</Result>
</GetForm25EditResponse>