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/ImportProductCatalogPages HTTP/1.1
Host: www.bernhardthospitality.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<ImportProductCatalogPages xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun.Products">
<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:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfstringstring>
<d4p1:Key>String</d4p1:Key>
<d4p1:Value>String</d4p1:Value>
</d4p1: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:d4p1="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>
<CallbackUrl>String</CallbackUrl>
<Cookies xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringstring>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value>String</d2p1:Value>
</d2p1:KeyValueOfstringstring>
</Cookies>
<Dpi>0</Dpi>
<Headers xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringstring>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value>String</d2p1:Value>
</d2p1:KeyValueOfstringstring>
</Headers>
<MediaUrls xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</MediaUrls>
<Quality>0</Quality>
<Referrer i:nil="true" />
<RequestId>00000000-0000-0000-0000-000000000000</RequestId>
<SplitWidePdfPages xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</SplitWidePdfPages>
<Urls xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</Urls>
</ImportProductCatalogPages>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ProductCatalogPagesCreated xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun.Products">
<Pages>
<ProductCatalogPage>
<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>
</ProductCatalogPage>
</Pages>
<RequestId>00000000-0000-0000-0000-000000000000</RequestId>
<Sections>
<ProductCatalogSection>
<Id xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Id>
<CatalogId>String</CatalogId>
<Cover>String</Cover>
<EndPageNum>0</EndPageNum>
<Label>String</Label>
<PageCount>0</PageCount>
<Position>0</Position>
<StartPageNum>0</StartPageNum>
</ProductCatalogSection>
</Sections>
<Skipped>
<ProductCatalogPage>
<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>
</ProductCatalogPage>
</Skipped>
</ProductCatalogPagesCreated>