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/GetProductCatalogPageRequestStatus HTTP/1.1
Host: www.bernhardthospitality.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GetProductCatalogPageRequestStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun.Products">
<RequestId>00000000-0000-0000-0000-000000000000</RequestId>
</GetProductCatalogPageRequestStatus>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ProductCatalogPageRequestStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun.Products">
<Exceptions xmlns:d2p1="http://schemas.datacontract.org/2004/07/System">
<d2p1:Exception>
<ClassName xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:string" xmlns="">System.Exception</ClassName>
<Message i:nil="true" xmlns="" />
<Data i:nil="true" xmlns="" />
<InnerException i:nil="true" xmlns="" />
<HelpURL i:nil="true" xmlns="" />
<StackTraceString i:nil="true" xmlns="" />
<RemoteStackTraceString i:nil="true" xmlns="" />
<RemoteStackIndex xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:int" xmlns="">0</RemoteStackIndex>
<ExceptionMethod i:nil="true" xmlns="" />
<HResult xmlns:d4p1="http://www.w3.org/2001/XMLSchema" i:type="d4p1:int" xmlns="">-2146233088</HResult>
<Source i:nil="true" xmlns="" />
<WatsonBuckets i:nil="true" xmlns="" />
</d2p1:Exception>
</Exceptions>
<Pages>
<ProductCatalogPageStatus>
<Id xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Id>
<Attributes>
<ContentType>String</ContentType>
<Description>String</Description>
<Euid>00000000-0000-0000-0000-000000000000</Euid>
<Height>0</Height>
<Id>0</Id>
<Label>String</Label>
<Overview>String</Overview>
<Realm>String</Realm>
<RefId>String</RefId>
<Url>String</Url>
<Width>0</Width>
</Attributes>
<CatalogId>String</CatalogId>
<Description>String</Description>
<Height>0</Height>
<Hotspots>
<ProductCatalogHotspot>
<Id xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Id>
<Action>None</Action>
<Bottom>0</Bottom>
<Generated>false</Generated>
<Height>0</Height>
<Left>0</Left>
<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>
</Meta>
<ModifiedOn>0001-01-01T00:00:00</ModifiedOn>
<OriginalHeight>0</OriginalHeight>
<OriginalWidth>0</OriginalWidth>
<PageId>String</PageId>
<Position>0</Position>
<ProductId>String</ProductId>
<ProductIds xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
<RepCustom>false</RepCustom>
<Right>0</Right>
<Top>0</Top>
<Width>0</Width>
</ProductCatalogHotspot>
</Hotspots>
<Label>String</Label>
<LastModifiedOn>0001-01-01T00:00:00</LastModifiedOn>
<Layout>String</Layout>
<MediaId>String</MediaId>
<ModifiedOn>0001-01-01T00:00:00</ModifiedOn>
<Overview>String</Overview>
<PageCount>0</PageCount>
<PageNum>0</PageNum>
<Position>0</Position>
<RepCustom>false</RepCustom>
<SectionId>String</SectionId>
<Type>String</Type>
<Url>String</Url>
<Width>0</Width>
<Imported>false</Imported>
</ProductCatalogPageStatus>
</Pages>
<Pdfs xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfguidArrayOfProductCatalogPageStatus4OgWxpat>
<d2p1:Key>00000000-0000-0000-0000-000000000000</d2p1:Key>
<d2p1:Value>
<ProductCatalogPageStatus>
<Id xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Id>
<Attributes>
<ContentType>String</ContentType>
<Description>String</Description>
<Euid>00000000-0000-0000-0000-000000000000</Euid>
<Height>0</Height>
<Id>0</Id>
<Label>String</Label>
<Overview>String</Overview>
<Realm>String</Realm>
<RefId>String</RefId>
<Url>String</Url>
<Width>0</Width>
</Attributes>
<CatalogId>String</CatalogId>
<Description>String</Description>
<Height>0</Height>
<Hotspots>
<ProductCatalogHotspot>
<Id xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Id>
<Action>None</Action>
<Bottom>0</Bottom>
<Generated>false</Generated>
<Height>0</Height>
<Left>0</Left>
<Meta>
<d2p1:KeyValueOfstringstring>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value>String</d2p1:Value>
</d2p1:KeyValueOfstringstring>
</Meta>
<ModifiedOn>0001-01-01T00:00:00</ModifiedOn>
<OriginalHeight>0</OriginalHeight>
<OriginalWidth>0</OriginalWidth>
<PageId>String</PageId>
<Position>0</Position>
<ProductId>String</ProductId>
<ProductIds i:nil="true" />
<RepCustom>false</RepCustom>
<Right>0</Right>
<Top>0</Top>
<Width>0</Width>
</ProductCatalogHotspot>
</Hotspots>
<Label>String</Label>
<LastModifiedOn>0001-01-01T00:00:00</LastModifiedOn>
<Layout>String</Layout>
<MediaId>String</MediaId>
<ModifiedOn>0001-01-01T00:00:00</ModifiedOn>
<Overview>String</Overview>
<PageCount>0</PageCount>
<PageNum>0</PageNum>
<Position>0</Position>
<RepCustom>false</RepCustom>
<SectionId>String</SectionId>
<Type>String</Type>
<Url>String</Url>
<Width>0</Width>
<Imported>false</Imported>
</ProductCatalogPageStatus>
</d2p1:Value>
</d2p1:KeyValueOfguidArrayOfProductCatalogPageStatus4OgWxpat>
</Pdfs>
<RequestId>00000000-0000-0000-0000-000000000000</RequestId>
<Urls xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</Urls>
</ProductCatalogPageRequestStatus>