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 /proposals HTTP/1.1
Host: api.portfoliolink.co.za
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GetProposals xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PortfolioLinkApi.ServiceModel">
<FilterStatus>String</FilterStatus>
<PageNr>0</PageNr>
<PageSize>0</PageSize>
<PartnerId>0</PartnerId>
<SearchText>String</SearchText>
</GetProposals>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetProposalsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PortfolioLinkApi.ServiceModel">
<CurrentPage>0</CurrentPage>
<CurrentPageNr>0</CurrentPageNr>
<Result xmlns:d2p1="http://schemas.datacontract.org/2004/07/SharedTypes">
<d2p1:ProposalView>
<d2p1:ClientFullName>String</d2p1:ClientFullName>
<d2p1:ClientGoalResultsId>0</d2p1:ClientGoalResultsId>
<d2p1:ClientId>0</d2p1:ClientId>
<d2p1:ClientIdNumber>String</d2p1:ClientIdNumber>
<d2p1:DocumentStatus>String</d2p1:DocumentStatus>
<d2p1:GoalName>String</d2p1:GoalName>
<d2p1:GoalTypeId>0</d2p1:GoalTypeId>
<d2p1:InputCurrentSavings>0</d2p1:InputCurrentSavings>
<d2p1:TotalRecords>0</d2p1:TotalRecords>
<d2p1:UpdatedAsAt>0001-01-01T00:00:00</d2p1:UpdatedAsAt>
</d2p1:ProposalView>
</Result>
<TotalPages>0</TotalPages>
<TotalRecords>0</TotalRecords>
</GetProposalsResponse>