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.
GET /User/Club/{ClubID}/Photo HTTP/1.1
Host: tstsrvs.redhotpie.com.au
Accept: application/xml
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GenericListPaginationInfoResponseOfClubMediaItemSjC_PYTVK xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">
<Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/RHP_API.ServiceModel">
<d2p1:ClubMediaItem>
<d2p1:CommunityAction>
<IsLiked>false</IsLiked>
<LikeCount>0</LikeCount>
<CommentCount>0</CommentCount>
</d2p1:CommunityAction>
<d2p1:MediaID>0</d2p1:MediaID>
<d2p1:MediaType>Undefined</d2p1:MediaType>
<d2p1:ParentID>0</d2p1:ParentID>
<d2p1:ParentType>Undefined</d2p1:ParentType>
<d2p1:Photo>
<ApprovalState>Pending</ApprovalState>
<FullUrl>String</FullUrl>
<Height>0</Height>
<ID>0</ID>
<ImageActionType>ShowImage</ImageActionType>
<ImageType>None</ImageType>
<ShowSafeMode>false</ShowSafeMode>
<ThumbUrl>String</ThumbUrl>
<Width>0</Width>
</d2p1:Photo>
<d2p1:SEOUrl>String</d2p1:SEOUrl>
<d2p1:Video>
<Classification>Undefined</Classification>
<ContentLength>0</ContentLength>
<ContentType>String</ContentType>
<Duration>0</Duration>
<HSLVideoUrl>String</HSLVideoUrl>
<ThumbUrl>String</ThumbUrl>
<VideoCode>String</VideoCode>
<VideoID>0</VideoID>
<VideoUrl>String</VideoUrl>
<ApprovalState>Pending</ApprovalState>
<ImageActionType>ShowImage</ImageActionType>
<ImageType>None</ImageType>
<ShowSafeMode>false</ShowSafeMode>
</d2p1:Video>
</d2p1:ClubMediaItem>
</Data>
<PaginationInfo>
<Page>0</Page>
<Size>0</Size>
<TotalItems>0</TotalItems>
</PaginationInfo>
</GenericListPaginationInfoResponseOfClubMediaItemSjC_PYTVK>