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/ImportMedia HTTP/1.1
Host: www.bernhardthospitality.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<ImportMedia xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun.OnDemand">
<items>
<Media>
<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:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfstringArrayOfstringty7Ep6D1>
<d4p1:Key>String</d4p1:Key>
<d4p1:Value>
<d4p1:string>String</d4p1:string>
</d4p1:Value>
</d4p1:KeyValueOfstringArrayOfstringty7Ep6D1>
</Tags>
<Area>0</Area>
<ClientId>String</ClientId>
<ContentLength>0</ContentLength>
<ContentType>String</ContentType>
<Height>0</Height>
<Images xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
<Key>String</Key>
<OriginalUrl>String</OriginalUrl>
<Predecessor>
<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:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringArrayOfstringty7Ep6D1>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>
<d5p1:string>String</d5p1:string>
</d5p1:Value>
</d5p1:KeyValueOfstringArrayOfstringty7Ep6D1>
</Tags>
<Area>0</Area>
<ClientId>String</ClientId>
<ContentLength>0</ContentLength>
<ContentType>String</ContentType>
<Height>0</Height>
<Images xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
<Key>String</Key>
<OriginalUrl>String</OriginalUrl>
<Predecessor>
<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:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:KeyValueOfstringArrayOfstringty7Ep6D1>
<d6p1:Key>String</d6p1:Key>
<d6p1:Value>
<d6p1:string>String</d6p1:string>
</d6p1:Value>
</d6p1:KeyValueOfstringArrayOfstringty7Ep6D1>
</Tags>
<Area>0</Area>
<ClientId>String</ClientId>
<ContentLength>0</ContentLength>
<ContentType>String</ContentType>
<Height>0</Height>
<Images xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
<Key>String</Key>
<OriginalUrl>String</OriginalUrl>
<Predecessor i:nil="true" />
<PredecessorId>0</PredecessorId>
<Realm>String</Realm>
<ReplacePredecessor>false</ReplacePredecessor>
<Url>String</Url>
<Width>0</Width>
</Predecessor>
<PredecessorId>0</PredecessorId>
<Realm>String</Realm>
<ReplacePredecessor>false</ReplacePredecessor>
<Url>String</Url>
<Width>0</Width>
</Predecessor>
<PredecessorId>0</PredecessorId>
<Realm>String</Realm>
<ReplacePredecessor>false</ReplacePredecessor>
<Url>String</Url>
<Width>0</Width>
</Media>
</items>
</ImportMedia>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<MediaImported xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun.OnDemand">
<Media>
<Media>
<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:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfstringArrayOfstringty7Ep6D1>
<d4p1:Key>String</d4p1:Key>
<d4p1:Value>
<d4p1:string>String</d4p1:string>
</d4p1:Value>
</d4p1:KeyValueOfstringArrayOfstringty7Ep6D1>
</Tags>
<Area>0</Area>
<ClientId>String</ClientId>
<ContentLength>0</ContentLength>
<ContentType>String</ContentType>
<Height>0</Height>
<Images xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
<Key>String</Key>
<OriginalUrl>String</OriginalUrl>
<Predecessor>
<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:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringArrayOfstringty7Ep6D1>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>
<d5p1:string>String</d5p1:string>
</d5p1:Value>
</d5p1:KeyValueOfstringArrayOfstringty7Ep6D1>
</Tags>
<Area>0</Area>
<ClientId>String</ClientId>
<ContentLength>0</ContentLength>
<ContentType>String</ContentType>
<Height>0</Height>
<Images xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
<Key>String</Key>
<OriginalUrl>String</OriginalUrl>
<Predecessor>
<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:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:KeyValueOfstringArrayOfstringty7Ep6D1>
<d6p1:Key>String</d6p1:Key>
<d6p1:Value>
<d6p1:string>String</d6p1:string>
</d6p1:Value>
</d6p1:KeyValueOfstringArrayOfstringty7Ep6D1>
</Tags>
<Area>0</Area>
<ClientId>String</ClientId>
<ContentLength>0</ContentLength>
<ContentType>String</ContentType>
<Height>0</Height>
<Images xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
<Key>String</Key>
<OriginalUrl>String</OriginalUrl>
<Predecessor i:nil="true" />
<PredecessorId>0</PredecessorId>
<Realm>String</Realm>
<ReplacePredecessor>false</ReplacePredecessor>
<Url>String</Url>
<Width>0</Width>
</Predecessor>
<PredecessorId>0</PredecessorId>
<Realm>String</Realm>
<ReplacePredecessor>false</ReplacePredecessor>
<Url>String</Url>
<Width>0</Width>
</Predecessor>
<PredecessorId>0</PredecessorId>
<Realm>String</Realm>
<ReplacePredecessor>false</ReplacePredecessor>
<Url>String</Url>
<Width>0</Width>
</Media>
</Media>
</MediaImported>