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 /Ams/{ClientID}/CustomPages HTTP/1.1
Host: ws.yourmembership.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<CustomPages xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YM.Web.Services.Ams">
<BypassCache xmlns="http://schemas.datacontract.org/2004/07/YM.Toolkit">false</BypassCache>
<ClientID xmlns="http://schemas.datacontract.org/2004/07/YM.Toolkit">0</ClientID>
<Device xmlns="http://schemas.datacontract.org/2004/07/YM.Toolkit">Desktop</Device>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types" xmlns="http://schemas.datacontract.org/2004/07/YM.Toolkit">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
<MemberID xmlns="http://schemas.datacontract.org/2004/07/YM.Toolkit">0</MemberID>
<CustomPage>
<Active>false</Active>
<Anchor>String</Anchor>
<AutoApproveNewSubmissions>false</AutoApproveNewSubmissions>
<AutoFormatted>false</AutoFormatted>
<Body>String</Body>
<CategoryID>0</CategoryID>
<CategoryName>String</CategoryName>
<ClientID>0</ClientID>
<CollaborationModeEnabled>false</CollaborationModeEnabled>
<CollectionIDs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:int>0</d3p1:int>
</CollectionIDs>
<DateToReview>0001-01-01T00:00:00</DateToReview>
<DocTypeID>String</DocTypeID>
<EditorCdbID>0</EditorCdbID>
<EditorName>String</EditorName>
<EmailFormTo>String</EmailFormTo>
<EnableBookmarkWidget>false</EnableBookmarkWidget>
<FormDisplayStyle>0</FormDisplayStyle>
<FormID>0</FormID>
<FormLandingUrl>String</FormLandingUrl>
<GroupID>0</GroupID>
<GroupName>String</GroupName>
<Hidden>false</Hidden>
<HideRightRail>false</HideRightRail>
<HtmlMeta>String</HtmlMeta>
<Identifier>String</Identifier>
<Index>0</Index>
<IsLock>false</IsLock>
<IsMemberTypeThankYou>false</IsMemberTypeThankYou>
<MemberTypesIDs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:int>0</d3p1:int>
</MemberTypesIDs>
<MetaTitle>String</MetaTitle>
<MicrositePage>false</MicrositePage>
<MobilePage>false</MobilePage>
<ModifiedAt>0001-01-01T00:00:00</ModifiedAt>
<PageID>0</PageID>
<PageStatus>0</PageStatus>
<Permalink>String</Permalink>
<Private>false</Private>
<Redirect>false</Redirect>
<RedirectUrl>String</RedirectUrl>
<RelatedPagesIDs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:int>0</d3p1:int>
</RelatedPagesIDs>
<ScoreContent>false</ScoreContent>
<Searchable>false</Searchable>
<TemplateID>0</TemplateID>
<Title>String</Title>
<VersionID>0</VersionID>
<VersionLabel>String</VersionLabel>
<VersionNotes>String</VersionNotes>
<XmlFeedType>String</XmlFeedType>
<XmlFeedUrl>String</XmlFeedUrl>
</CustomPage>
<IsCollaborator>false</IsCollaborator>
<PageID>0</PageID>
<PageType>Backend</PageType>
<Publish>false</Publish>
<QueueForDelete>false</QueueForDelete>
<Revert>false</Revert>
<Searchable>false</Searchable>
<VersionID>0</VersionID>
</CustomPages>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<CustomPagesResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/YM.Web.Services.Ams">
<BypassCache xmlns="http://schemas.datacontract.org/2004/07/YM.Toolkit">false</BypassCache>
<ClientID xmlns="http://schemas.datacontract.org/2004/07/YM.Toolkit">0</ClientID>
<Device xmlns="http://schemas.datacontract.org/2004/07/YM.Toolkit">Desktop</Device>
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types" xmlns="http://schemas.datacontract.org/2004/07/YM.Toolkit">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
<MemberID xmlns="http://schemas.datacontract.org/2004/07/YM.Toolkit">0</MemberID>
<CustomPage>
<Active>false</Active>
<Anchor>String</Anchor>
<AutoApproveNewSubmissions>false</AutoApproveNewSubmissions>
<AutoFormatted>false</AutoFormatted>
<Body>String</Body>
<CategoryID>0</CategoryID>
<CategoryName>String</CategoryName>
<ClientID>0</ClientID>
<CollaborationModeEnabled>false</CollaborationModeEnabled>
<CollectionIDs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:int>0</d3p1:int>
</CollectionIDs>
<DateToReview>0001-01-01T00:00:00</DateToReview>
<DocTypeID>String</DocTypeID>
<EditorCdbID>0</EditorCdbID>
<EditorName>String</EditorName>
<EmailFormTo>String</EmailFormTo>
<EnableBookmarkWidget>false</EnableBookmarkWidget>
<FormDisplayStyle>0</FormDisplayStyle>
<FormID>0</FormID>
<FormLandingUrl>String</FormLandingUrl>
<GroupID>0</GroupID>
<GroupName>String</GroupName>
<Hidden>false</Hidden>
<HideRightRail>false</HideRightRail>
<HtmlMeta>String</HtmlMeta>
<Identifier>String</Identifier>
<Index>0</Index>
<IsLock>false</IsLock>
<IsMemberTypeThankYou>false</IsMemberTypeThankYou>
<MemberTypesIDs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:int>0</d3p1:int>
</MemberTypesIDs>
<MetaTitle>String</MetaTitle>
<MicrositePage>false</MicrositePage>
<MobilePage>false</MobilePage>
<ModifiedAt>0001-01-01T00:00:00</ModifiedAt>
<PageID>0</PageID>
<PageStatus>0</PageStatus>
<Permalink>String</Permalink>
<Private>false</Private>
<Redirect>false</Redirect>
<RedirectUrl>String</RedirectUrl>
<RelatedPagesIDs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:int>0</d3p1:int>
</RelatedPagesIDs>
<ScoreContent>false</ScoreContent>
<Searchable>false</Searchable>
<TemplateID>0</TemplateID>
<Title>String</Title>
<VersionID>0</VersionID>
<VersionLabel>String</VersionLabel>
<VersionNotes>String</VersionNotes>
<XmlFeedType>String</XmlFeedType>
<XmlFeedUrl>String</XmlFeedUrl>
</CustomPage>
<IsCollaborator>false</IsCollaborator>
<PageID>0</PageID>
<PageType>Backend</PageType>
<Publish>false</Publish>
<QueueForDelete>false</QueueForDelete>
<Revert>false</Revert>
<Searchable>false</Searchable>
<VersionID>0</VersionID>
<CustomPages>
<Active>false</Active>
<Anchor>String</Anchor>
<AutoApproveNewSubmissions>false</AutoApproveNewSubmissions>
<AutoFormatted>false</AutoFormatted>
<Body>String</Body>
<CategoryID>0</CategoryID>
<CategoryName>String</CategoryName>
<ClientID>0</ClientID>
<CollaborationModeEnabled>false</CollaborationModeEnabled>
<CollectionIDs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:int>0</d3p1:int>
</CollectionIDs>
<DateToReview>0001-01-01T00:00:00</DateToReview>
<DocTypeID>String</DocTypeID>
<EditorCdbID>0</EditorCdbID>
<EditorName>String</EditorName>
<EmailFormTo>String</EmailFormTo>
<EnableBookmarkWidget>false</EnableBookmarkWidget>
<FormDisplayStyle>0</FormDisplayStyle>
<FormID>0</FormID>
<FormLandingUrl>String</FormLandingUrl>
<GroupID>0</GroupID>
<GroupName>String</GroupName>
<Hidden>false</Hidden>
<HideRightRail>false</HideRightRail>
<HtmlMeta>String</HtmlMeta>
<Identifier>String</Identifier>
<Index>0</Index>
<IsLock>false</IsLock>
<IsMemberTypeThankYou>false</IsMemberTypeThankYou>
<MemberTypesIDs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:int>0</d3p1:int>
</MemberTypesIDs>
<MetaTitle>String</MetaTitle>
<MicrositePage>false</MicrositePage>
<MobilePage>false</MobilePage>
<ModifiedAt>0001-01-01T00:00:00</ModifiedAt>
<PageID>0</PageID>
<PageStatus>0</PageStatus>
<Permalink>String</Permalink>
<Private>false</Private>
<Redirect>false</Redirect>
<RedirectUrl>String</RedirectUrl>
<RelatedPagesIDs xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:int>0</d3p1:int>
</RelatedPagesIDs>
<ScoreContent>false</ScoreContent>
<Searchable>false</Searchable>
<TemplateID>0</TemplateID>
<Title>String</Title>
<VersionID>0</VersionID>
<VersionLabel>String</VersionLabel>
<VersionNotes>String</VersionNotes>
<XmlFeedType>String</XmlFeedType>
<XmlFeedUrl>String</XmlFeedUrl>
</CustomPages>
<PageIDUsedByAnotherPage>false</PageIDUsedByAnotherPage>
<PageIsUsedAsThankYouPage>false</PageIsUsedAsThankYouPage>
</CustomPagesResponse>