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/DeactivateProductTemplate HTTP/1.1
Host: www.bernhardthospitality.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<DeactivateProductTemplate xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun.OnDemand">
<CreatedBy>String</CreatedBy>
<CreatedOn>0001-01-01T00:00:00</CreatedOn>
<Id>0</Id>
<LastModifiedBy>String</LastModifiedBy>
<LastModifiedOn>0001-01-01T00:00:00</LastModifiedOn>
<Position>0</Position>
<Euid>00000000-0000-0000-0000-000000000000</Euid>
<Active>false</Active>
<Label>String</Label>
<Name i:nil="true" />
<Title i:nil="true" />
<Description>String</Description>
<Rating>0</Rating>
<RefId>String</RefId>
<Restricted>false</Restricted>
<Tags xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringArrayOfstringty7Ep6D1>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value>
<d2p1:string>String</d2p1:string>
</d2p1:Value>
</d2p1:KeyValueOfstringArrayOfstringty7Ep6D1>
</Tags>
<Areas>
<DesignArea>
<Description>String</Description>
<Euid>00000000-0000-0000-0000-000000000000</Euid>
<Label>String</Label>
<BackgroundColor>String</BackgroundColor>
<BleedLine>0</BleedLine>
<CopyFrom>00000000-0000-0000-0000-000000000000</CopyFrom>
<Design>
<ContentType>String</ContentType>
<Description>String</Description>
<Euid>00000000-0000-0000-0000-000000000000</Euid>
<Height>0</Height>
<Id>0</Id>
<Label>String</Label>
<Realm>String</Realm>
<RefId>String</RefId>
<Url>String</Url>
<Width>0</Width>
</Design>
<Height>0</Height>
<Overlays>
<DesignAreaOverlay>
<Description>String</Description>
<Euid>00000000-0000-0000-0000-000000000000</Euid>
<Label>String</Label>
<CanDesign>false</CanDesign>
<Height>0</Height>
<IsPrintImage>false</IsPrintImage>
<IsProductImage>false</IsProductImage>
<Media>
<ContentType>String</ContentType>
<Description>String</Description>
<Euid>00000000-0000-0000-0000-000000000000</Euid>
<Height>0</Height>
<Id>0</Id>
<Label>String</Label>
<Realm>String</Realm>
<RefId>String</RefId>
<Url>String</Url>
<Width>0</Width>
</Media>
<Width>0</Width>
<X>0</X>
<Y>0</Y>
</DesignAreaOverlay>
</Overlays>
<Ratio>8:1</Ratio>
<SafeLine>0</SafeLine>
<SupplierCode>String</SupplierCode>
<Underlays>
<DesignAreaUnderlay>
<Description>String</Description>
<Euid>00000000-0000-0000-0000-000000000000</Euid>
<Label>String</Label>
<CanDesign>false</CanDesign>
<Height>0</Height>
<IsPrintImage>false</IsPrintImage>
<IsProductImage>false</IsProductImage>
<Media>
<ContentType>String</ContentType>
<Description>String</Description>
<Euid>00000000-0000-0000-0000-000000000000</Euid>
<Height>0</Height>
<Id>0</Id>
<Label>String</Label>
<Realm>String</Realm>
<RefId>String</RefId>
<Url>String</Url>
<Width>0</Width>
</Media>
<Width>0</Width>
<X>0</X>
<Y>0</Y>
</DesignAreaUnderlay>
</Underlays>
<Width>0</Width>
</DesignArea>
</Areas>
<Cost>0</Cost>
<Depth>0</Depth>
<Documents>
<MediaReference>
<ContentType>String</ContentType>
<Description>String</Description>
<Euid>00000000-0000-0000-0000-000000000000</Euid>
<Height>0</Height>
<Id>0</Id>
<Label>String</Label>
<Realm>String</Realm>
<RefId>String</RefId>
<Url>String</Url>
<Width>0</Width>
</MediaReference>
</Documents>
<Height>0</Height>
<Images>
<MediaReference>
<ContentType>String</ContentType>
<Description>String</Description>
<Euid>00000000-0000-0000-0000-000000000000</Euid>
<Height>0</Height>
<Id>0</Id>
<Label>String</Label>
<Realm>String</Realm>
<RefId>String</RefId>
<Url>String</Url>
<Width>0</Width>
</MediaReference>
</Images>
<MinimumOrderQty>0</MinimumOrderQty>
<PurchaseIncrement>0</PurchaseIncrement>
<Ratio>8:1</Ratio>
<RetailPrice>0</RetailPrice>
<Sku>String</Sku>
<Upc>String</Upc>
<VendorId>String</VendorId>
<Weight>0</Weight>
<WholesalePrice>0</WholesalePrice>
<Width>0</Width>
</DeactivateProductTemplate>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ProductTemplateDeactivated xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun.OnDemand">
<CreatedBy>String</CreatedBy>
<CreatedOn>0001-01-01T00:00:00</CreatedOn>
<Id>0</Id>
<LastModifiedBy>String</LastModifiedBy>
<LastModifiedOn>0001-01-01T00:00:00</LastModifiedOn>
<Position>0</Position>
<Euid>00000000-0000-0000-0000-000000000000</Euid>
<Active>false</Active>
<Label>String</Label>
<Name i:nil="true" />
<Title i:nil="true" />
<Description>String</Description>
<Rating>0</Rating>
<RefId>String</RefId>
<Restricted>false</Restricted>
<Tags xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfstringArrayOfstringty7Ep6D1>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value>
<d2p1:string>String</d2p1:string>
</d2p1:Value>
</d2p1:KeyValueOfstringArrayOfstringty7Ep6D1>
</Tags>
<Areas>
<DesignArea>
<Description>String</Description>
<Euid>00000000-0000-0000-0000-000000000000</Euid>
<Label>String</Label>
<BackgroundColor>String</BackgroundColor>
<BleedLine>0</BleedLine>
<CopyFrom>00000000-0000-0000-0000-000000000000</CopyFrom>
<Design>
<ContentType>String</ContentType>
<Description>String</Description>
<Euid>00000000-0000-0000-0000-000000000000</Euid>
<Height>0</Height>
<Id>0</Id>
<Label>String</Label>
<Realm>String</Realm>
<RefId>String</RefId>
<Url>String</Url>
<Width>0</Width>
</Design>
<Height>0</Height>
<Overlays>
<DesignAreaOverlay>
<Description>String</Description>
<Euid>00000000-0000-0000-0000-000000000000</Euid>
<Label>String</Label>
<CanDesign>false</CanDesign>
<Height>0</Height>
<IsPrintImage>false</IsPrintImage>
<IsProductImage>false</IsProductImage>
<Media>
<ContentType>String</ContentType>
<Description>String</Description>
<Euid>00000000-0000-0000-0000-000000000000</Euid>
<Height>0</Height>
<Id>0</Id>
<Label>String</Label>
<Realm>String</Realm>
<RefId>String</RefId>
<Url>String</Url>
<Width>0</Width>
</Media>
<Width>0</Width>
<X>0</X>
<Y>0</Y>
</DesignAreaOverlay>
</Overlays>
<Ratio>8:1</Ratio>
<SafeLine>0</SafeLine>
<SupplierCode>String</SupplierCode>
<Underlays>
<DesignAreaUnderlay>
<Description>String</Description>
<Euid>00000000-0000-0000-0000-000000000000</Euid>
<Label>String</Label>
<CanDesign>false</CanDesign>
<Height>0</Height>
<IsPrintImage>false</IsPrintImage>
<IsProductImage>false</IsProductImage>
<Media>
<ContentType>String</ContentType>
<Description>String</Description>
<Euid>00000000-0000-0000-0000-000000000000</Euid>
<Height>0</Height>
<Id>0</Id>
<Label>String</Label>
<Realm>String</Realm>
<RefId>String</RefId>
<Url>String</Url>
<Width>0</Width>
</Media>
<Width>0</Width>
<X>0</X>
<Y>0</Y>
</DesignAreaUnderlay>
</Underlays>
<Width>0</Width>
</DesignArea>
</Areas>
<Cost>0</Cost>
<Depth>0</Depth>
<Documents>
<MediaReference>
<ContentType>String</ContentType>
<Description>String</Description>
<Euid>00000000-0000-0000-0000-000000000000</Euid>
<Height>0</Height>
<Id>0</Id>
<Label>String</Label>
<Realm>String</Realm>
<RefId>String</RefId>
<Url>String</Url>
<Width>0</Width>
</MediaReference>
</Documents>
<Height>0</Height>
<Images>
<MediaReference>
<ContentType>String</ContentType>
<Description>String</Description>
<Euid>00000000-0000-0000-0000-000000000000</Euid>
<Height>0</Height>
<Id>0</Id>
<Label>String</Label>
<Realm>String</Realm>
<RefId>String</RefId>
<Url>String</Url>
<Width>0</Width>
</MediaReference>
</Images>
<MinimumOrderQty>0</MinimumOrderQty>
<PurchaseIncrement>0</PurchaseIncrement>
<Ratio>8:1</Ratio>
<RetailPrice>0</RetailPrice>
<Sku>String</Sku>
<Upc>String</Upc>
<VendorId>String</VendorId>
<Weight>0</Weight>
<WholesalePrice>0</WholesalePrice>
<Width>0</Width>
</ProductTemplateDeactivated>