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 /users/unAssignRole HTTP/1.1
Host: api.portfoliolink.co.za
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<UnAssignRole xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PortfolioLinkApi.ServiceModel">
<Permission>String</Permission>
<Role>String</Role>
<UserName>String</UserName>
</UnAssignRole>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<UnAssignRoleResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PortfolioLinkApi.ServiceModel">
<Created>0001-01-01T00:00:00</Created>
</UnAssignRoleResponse>