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 /signing/sendrequest HTTP/1.1
Host: api.portfoliolink.co.za
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<SendLivingAnnuitySignatureRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PortfolioLinkApi.ServiceModel">
<CcSignerEmail1>String</CcSignerEmail1>
<CcSignerEmail2>String</CcSignerEmail2>
<CcSignerEmail3>String</CcSignerEmail3>
<CcSignerName1>String</CcSignerName1>
<CcSignerName2>String</CcSignerName2>
<CcSignerName3>String</CcSignerName3>
<GoalResultsId>0</GoalResultsId>
<Message>String</Message>
<SignerEmail1>String</SignerEmail1>
<SignerEmail2>String</SignerEmail2>
<SignerEmail3>String</SignerEmail3>
<SignerName1>String</SignerName1>
<SignerName2>String</SignerName2>
<SignerName3>String</SignerName3>
<Subject>String</Subject>
<Title>String</Title>
</SendLivingAnnuitySignatureRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<RequestSignatureResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PortfolioLinkApi.ServiceModel">
<Id>0</Id>
<Success>false</Success>
</RequestSignatureResponse>