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 /trades/all HTTP/1.1
Host: api.fxhub.co.za
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetAllTradesResponse 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:Trades>
<d2p1:BuySell>String</d2p1:BuySell>
<d2p1:CifNumber>String</d2p1:CifNumber>
<d2p1:ClientId>0</d2p1:ClientId>
<d2p1:Currency1>String</d2p1:Currency1>
<d2p1:Currency1Amount>0</d2p1:Currency1Amount>
<d2p1:Currency2>String</d2p1:Currency2>
<d2p1:Currency2Amount>0</d2p1:Currency2Amount>
<d2p1:CustomerName>String</d2p1:CustomerName>
<d2p1:DealDate>0001-01-01T00:00:00</d2p1:DealDate>
<d2p1:DealNumber>0</d2p1:DealNumber>
<d2p1:DealRate>0</d2p1:DealRate>
<d2p1:DealType>String</d2p1:DealType>
<d2p1:FirstLastName>String</d2p1:FirstLastName>
<d2p1:IPIntroducer>String</d2p1:IPIntroducer>
<d2p1:Id>0</d2p1:Id>
<d2p1:IntermediaryProfitZar>0</d2p1:IntermediaryProfitZar>
<d2p1:IntermediaryRate>0</d2p1:IntermediaryRate>
<d2p1:PartnerId>0</d2p1:PartnerId>
<d2p1:PartnerName>String</d2p1:PartnerName>
<d2p1:ValueDate>0001-01-01T00:00:00</d2p1:ValueDate>
</d2p1:Trades>
</Result>
</GetAllTradesResponse>