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.
PUT /query/chat_partner HTTP/1.1
Host: api.fxlink.co.za
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<PartnerQueryChat xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FxHubPartnersApi.ServiceModel">
<Query xmlns:d2p1="http://schemas.datacontract.org/2004/07/FxHubPartnersApi.ServiceModel.Types">
<d2p1:AdminId>0</d2p1:AdminId>
<d2p1:AdminName>String</d2p1:AdminName>
<d2p1:HasBeenAnswered>false</d2p1:HasBeenAnswered>
<d2p1:Id>0</d2p1:Id>
<d2p1:InitialSendTime>String</d2p1:InitialSendTime>
<d2p1:MostRecentUpdatedTime>String</d2p1:MostRecentUpdatedTime>
<d2p1:PartnerId>0</d2p1:PartnerId>
<d2p1:PartnerName>String</d2p1:PartnerName>
<d2p1:QueryCategory>String</d2p1:QueryCategory>
<d2p1:QueryMessages>
<d2p1:QueryMessage>
<d2p1:Message>String</d2p1:Message>
<d2p1:SentBy>String</d2p1:SentBy>
<d2p1:UpdatedAt>String</d2p1:UpdatedAt>
</d2p1:QueryMessage>
</d2p1:QueryMessages>
<d2p1:QuerySentTime>0001-01-01T00:00:00</d2p1:QuerySentTime>
<d2p1:QueryStatus>String</d2p1:QueryStatus>
<d2p1:UserId>0</d2p1:UserId>
<d2p1:UserName>String</d2p1:UserName>
</Query>
</PartnerQueryChat>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<PartnerQueryChatResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FxHubPartnersApi.ServiceModel">
<Message>String</Message>
<Result>false</Result>
</PartnerQueryChatResponse>