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 /projections/income HTTP/1.1
Host: api.portfoliolink.co.za
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GetIncomeCashFlowRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PortfolioLinkApi.ServiceModel">
<AdhocCashFlow1>0</AdhocCashFlow1>
<AdhocCashFlow2>0</AdhocCashFlow2>
<AdhocCashFlow3>0</AdhocCashFlow3>
<AdhocCashFlowAge1>0</AdhocCashFlowAge1>
<AdhocCashFlowAge2>0</AdhocCashFlowAge2>
<AdhocCashFlowAge3>0</AdhocCashFlowAge3>
<ApplySmile>false</ApplySmile>
<CurrentAge>0</CurrentAge>
<HasAdhocCashFlow>false</HasAdhocCashFlow>
<Income>0</Income>
<IncomeGrowth>0</IncomeGrowth>
<IncomeGrowthFrequency>0</IncomeGrowthFrequency>
<IncomeIncludeZeroIncomeYears>false</IncomeIncludeZeroIncomeYears>
<IncomeLabel>String</IncomeLabel>
<IncomeToLast>0</IncomeToLast>
<KeyIndex>0</KeyIndex>
<PayoutFrequency>0</PayoutFrequency>
<SmilePercentages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfintdecimal>
<d2p1:Key>0</d2p1:Key>
<d2p1:Value>0</d2p1:Value>
</d2p1:KeyValueOfintdecimal>
</SmilePercentages>
<StartYear>0</StartYear>
<TaxRate>0</TaxRate>
</GetIncomeCashFlowRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetIncomeCashFlowResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PortfolioLinkApi.ServiceModel">
<Incomes xmlns:d2p1="http://schemas.datacontract.org/2004/07/PortfolioLinkApi.ServiceModel.Types">
<d2p1:IncomeView>
<d2p1:Income>0</d2p1:Income>
<d2p1:Year>0</d2p1:Year>
</d2p1:IncomeView>
</Incomes>
<IndividualIncomes>
<GetIncomeCashFlowResponse>
<Incomes xmlns:d4p1="http://schemas.datacontract.org/2004/07/PortfolioLinkApi.ServiceModel.Types">
<d4p1:IncomeView>
<d4p1:Income>0</d4p1:Income>
<d4p1:Year>0</d4p1:Year>
</d4p1:IncomeView>
</Incomes>
<IndividualIncomes>
<GetIncomeCashFlowResponse>
<Incomes xmlns:d6p1="http://schemas.datacontract.org/2004/07/PortfolioLinkApi.ServiceModel.Types">
<d6p1:IncomeView>
<d6p1:Income>0</d6p1:Income>
<d6p1:Year>0</d6p1:Year>
</d6p1:IncomeView>
</Incomes>
<IndividualIncomes>
<GetIncomeCashFlowResponse>
<Incomes xmlns:d8p1="http://schemas.datacontract.org/2004/07/PortfolioLinkApi.ServiceModel.Types">
<d8p1:IncomeView>
<d8p1:Income>0</d8p1:Income>
<d8p1:Year>0</d8p1:Year>
</d8p1:IncomeView>
</Incomes>
<IndividualIncomes i:nil="true" />
</GetIncomeCashFlowResponse>
</IndividualIncomes>
</GetIncomeCashFlowResponse>
</IndividualIncomes>
</GetIncomeCashFlowResponse>
</IndividualIncomes>
</GetIncomeCashFlowResponse>