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.
PATCH /User/Account/Settings/PushNotification HTTP/1.1
Host: tstsrvs.redhotpie.com.au
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<PatchPushNotificationSettings xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RHP_API.ServiceModel">
<DateFinderInterest>false</DateFinderInterest>
<EventComment>false</EventComment>
<Favourites>Anyone</Favourites>
<ForumComment>false</ForumComment>
<GroupChat>Anyone</GroupChat>
<Likes>Anyone</Likes>
<Matches>false</Matches>
<Messages>Anyone</Messages>
<RHPTeamMessages>false</RHPTeamMessages>
<StoryComment>false</StoryComment>
<Views>Anyone</Views>
</PatchPushNotificationSettings>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<PushNotificationSettings xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">
<DateFinderInterest>false</DateFinderInterest>
<EventComment>false</EventComment>
<Favourites>Anyone</Favourites>
<ForumComment>false</ForumComment>
<GroupChat>Anyone</GroupChat>
<Likes>Anyone</Likes>
<Matches>false</Matches>
<Messages>Anyone</Messages>
<PushTags>String</PushTags>
<RHPTeamMessages>false</RHPTeamMessages>
<StoryComment>false</StoryComment>
<Views>Anyone</Views>
</PushNotificationSettings>