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 /service/QueryProductCatalogPages HTTP/1.1
Host: www.bernhardt.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<QueryProductCatalogPages xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun.Products">
<Fields xmlns="http://schemas.servicestack.net/types">String</Fields>
<Include xmlns="http://schemas.servicestack.net/types">String</Include>
<Meta xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.servicestack.net/types">
<d2p1:KeyValueOfstringstring>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value>String</d2p1:Value>
</d2p1:KeyValueOfstringstring>
</Meta>
<OrderBy xmlns="http://schemas.servicestack.net/types">String</OrderBy>
<OrderByDesc xmlns="http://schemas.servicestack.net/types">String</OrderByDesc>
<Skip xmlns="http://schemas.servicestack.net/types">0</Skip>
<Take xmlns="http://schemas.servicestack.net/types">0</Take>
<CatalogId>String</CatalogId>
<Id>String</Id>
<Search>String</Search>
<SectionId>String</SectionId>
</QueryProductCatalogPages>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<QueryResponseOfProductCatalogPageHJ2Sph_Pt xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types">
<Offset>0</Offset>
<Total>0</Total>
<Results xmlns:d2p1="http://schemas.datacontract.org/2004/07/Emun.Products">
<d2p1:ProductCatalogPage>
<Id xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Id>
<d2p1:Attributes>
<d2p1:ContentType>String</d2p1:ContentType>
<d2p1:Description>String</d2p1:Description>
<d2p1:Euid>00000000-0000-0000-0000-000000000000</d2p1:Euid>
<d2p1:Height>0</d2p1:Height>
<d2p1:Id>0</d2p1:Id>
<d2p1:Label>String</d2p1:Label>
<d2p1:Overview>String</d2p1:Overview>
<d2p1:Realm>String</d2p1:Realm>
<d2p1:RefId>String</d2p1:RefId>
<d2p1:Url>String</d2p1:Url>
<d2p1:Width>0</d2p1:Width>
</d2p1:Attributes>
<d2p1:CatalogId>String</d2p1:CatalogId>
<d2p1:Description>String</d2p1:Description>
<d2p1:Height>0</d2p1:Height>
<d2p1:Hotspots>
<d2p1:ProductCatalogHotspot>
<Id xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Id>
<d2p1:Action>None</d2p1:Action>
<d2p1:Bottom>0</d2p1:Bottom>
<d2p1:Generated>false</d2p1:Generated>
<d2p1:Height>0</d2p1:Height>
<d2p1:Left>0</d2p1:Left>
<d2p1:Meta xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:KeyValueOfstringstring>
<d6p1:Key>String</d6p1:Key>
<d6p1:Value>String</d6p1:Value>
</d6p1:KeyValueOfstringstring>
</d2p1:Meta>
<d2p1:ModifiedOn>0001-01-01T00:00:00</d2p1:ModifiedOn>
<d2p1:OriginalHeight>0</d2p1:OriginalHeight>
<d2p1:OriginalWidth>0</d2p1:OriginalWidth>
<d2p1:PageId>String</d2p1:PageId>
<d2p1:Position>0</d2p1:Position>
<d2p1:ProductId>String</d2p1:ProductId>
<d2p1:ProductIds xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
<d2p1:RepCustom>false</d2p1:RepCustom>
<d2p1:Right>0</d2p1:Right>
<d2p1:Top>0</d2p1:Top>
<d2p1:Width>0</d2p1:Width>
</d2p1:ProductCatalogHotspot>
</d2p1:Hotspots>
<d2p1:Label>String</d2p1:Label>
<d2p1:LastModifiedOn>0001-01-01T00:00:00</d2p1:LastModifiedOn>
<d2p1:Layout>String</d2p1:Layout>
<d2p1:MediaId>String</d2p1:MediaId>
<d2p1:ModifiedOn>0001-01-01T00:00:00</d2p1:ModifiedOn>
<d2p1:Overview>String</d2p1:Overview>
<d2p1:PageCount>0</d2p1:PageCount>
<d2p1:PageNum>0</d2p1:PageNum>
<d2p1:Position>0</d2p1:Position>
<d2p1:RepCustom>false</d2p1:RepCustom>
<d2p1:SectionId>String</d2p1:SectionId>
<d2p1:Type>String</d2p1:Type>
<d2p1:Url>String</d2p1:Url>
<d2p1:Width>0</d2p1:Width>
</d2p1:ProductCatalogPage>
</Results>
<Meta xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringstring>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value>String</d2p1:Value>
</d2p1:KeyValueOfstringstring>
</Meta>
<ResponseStatus>
<ErrorCode>String</ErrorCode>
<Message>String</Message>
<StackTrace>String</StackTrace>
<Errors>
<ResponseError>
<ErrorCode>String</ErrorCode>
<FieldName>String</FieldName>
<Message>String</Message>
<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>
</Meta>
</ResponseError>
</Errors>
<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>
</Meta>
</ResponseStatus>
</QueryResponseOfProductCatalogPageHJ2Sph_Pt>