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 /tax/ra HTTP/1.1
Host: api.portfoliolink.co.za
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GetRaTaxInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PortfolioLinkApi.ServiceModel">
<Age>0</Age>
<Donations>0</Donations>
<Income>0</Income>
<PensionFundContributions>0</PensionFundContributions>
</GetRaTaxInfo>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetRaTaxInfoResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PortfolioLinkApi.ServiceModel">
<ContributionsVol>0</ContributionsVol>
<Income>0</Income>
<NetIncomeAfterContributions>0</NetIncomeAfterContributions>
<NetIncomeVol>0</NetIncomeVol>
<PensionFundContributions>0</PensionFundContributions>
<TaxBracket xmlns:d2p1="http://schemas.datacontract.org/2004/07/SharedTypes">
<d2p1:Lower>0</d2p1:Lower>
<d2p1:Rate>0</d2p1:Rate>
<d2p1:Upper>0</d2p1:Upper>
</TaxBracket>
<TaxBracketVol xmlns:d2p1="http://schemas.datacontract.org/2004/07/SharedTypes">
<d2p1:Lower>0</d2p1:Lower>
<d2p1:Rate>0</d2p1:Rate>
<d2p1:Upper>0</d2p1:Upper>
</TaxBracketVol>
<TaxPayable>0</TaxPayable>
<TaxPayableVol>0</TaxPayableVol>
</GetRaTaxInfoResponse>