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/RequestContact HTTP/1.1
Host: www.bernhardthospitality.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<RequestContact xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun.Shopping">
<Bcc xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Bcc>
<Body xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Body>
<Cc xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Cc>
<From xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</From>
<FromEmail xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</FromEmail>
<Message xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Message>
<Recipients xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/ServiceStack" />
<ReplyTo xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</ReplyTo>
<ReplyToList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/ServiceStack" />
<SendTo xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</SendTo>
<StubbornVendorId xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</StubbornVendorId>
<Subject xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Subject>
<SubjectOverWrite xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</SubjectOverWrite>
<To xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</To>
<ToEmail xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</ToEmail>
<Billing xmlns:d2p1="http://schemas.datacontract.org/2004/07/Emun">
<d2p1:AccountType>String</d2p1:AccountType>
<d2p1:Address>String</d2p1:Address>
<d2p1:Address1>String</d2p1:Address1>
<d2p1:Address2>String</d2p1:Address2>
<d2p1:City>String</d2p1:City>
<d2p1:CompanyName>String</d2p1:CompanyName>
<d2p1:Country>String</d2p1:Country>
<d2p1:Custom2>String</d2p1:Custom2>
<d2p1:Email>String</d2p1:Email>
<d2p1:Fax>String</d2p1:Fax>
<d2p1:Id>String</d2p1:Id>
<d2p1: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>
</d2p1:Meta>
<d2p1:PersonName>
<d2p1:First>String</d2p1:First>
<d2p1:Full>String String String String String</d2p1:Full>
<d2p1:Last>String</d2p1:Last>
<d2p1:Middle>String</d2p1:Middle>
<d2p1:Salutation>String</d2p1:Salutation>
<d2p1:Suffix>String</d2p1:Suffix>
</d2p1:PersonName>
<d2p1:Phone>String</d2p1:Phone>
<d2p1:State>String</d2p1:State>
<d2p1:StoreSize>String</d2p1:StoreSize>
<d2p1:Zip>String</d2p1:Zip>
</Billing>
<CompanyName>String</CompanyName>
<ContactName>String</ContactName>
<Mailing xmlns:d2p1="http://schemas.datacontract.org/2004/07/Emun">
<d2p1:AccountType>String</d2p1:AccountType>
<d2p1:Address>String</d2p1:Address>
<d2p1:Address1>String</d2p1:Address1>
<d2p1:Address2>String</d2p1:Address2>
<d2p1:City>String</d2p1:City>
<d2p1:CompanyName>String</d2p1:CompanyName>
<d2p1:Country>String</d2p1:Country>
<d2p1:Custom2>String</d2p1:Custom2>
<d2p1:Email>String</d2p1:Email>
<d2p1:Fax>String</d2p1:Fax>
<d2p1:Id>String</d2p1:Id>
<d2p1: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>
</d2p1:Meta>
<d2p1:PersonName>
<d2p1:First>String</d2p1:First>
<d2p1:Full>String String String String String</d2p1:Full>
<d2p1:Last>String</d2p1:Last>
<d2p1:Middle>String</d2p1:Middle>
<d2p1:Salutation>String</d2p1:Salutation>
<d2p1:Suffix>String</d2p1:Suffix>
</d2p1:PersonName>
<d2p1:Phone>String</d2p1:Phone>
<d2p1:State>String</d2p1:State>
<d2p1:StoreSize>String</d2p1:StoreSize>
<d2p1:Zip>String</d2p1:Zip>
</Mailing>
<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>
<OrderNumber>String</OrderNumber>
<Phone>String</Phone>
<RequestType>String</RequestType>
<Shipping xmlns:d2p1="http://schemas.datacontract.org/2004/07/Emun">
<d2p1:AccountType>String</d2p1:AccountType>
<d2p1:Address>String</d2p1:Address>
<d2p1:Address1>String</d2p1:Address1>
<d2p1:Address2>String</d2p1:Address2>
<d2p1:City>String</d2p1:City>
<d2p1:CompanyName>String</d2p1:CompanyName>
<d2p1:Country>String</d2p1:Country>
<d2p1:Custom2>String</d2p1:Custom2>
<d2p1:Email>String</d2p1:Email>
<d2p1:Fax>String</d2p1:Fax>
<d2p1:Id>String</d2p1:Id>
<d2p1: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>
</d2p1:Meta>
<d2p1:PersonName>
<d2p1:First>String</d2p1:First>
<d2p1:Full>String String String String String</d2p1:Full>
<d2p1:Last>String</d2p1:Last>
<d2p1:Middle>String</d2p1:Middle>
<d2p1:Salutation>String</d2p1:Salutation>
<d2p1:Suffix>String</d2p1:Suffix>
</d2p1:PersonName>
<d2p1:Phone>String</d2p1:Phone>
<d2p1:State>String</d2p1:State>
<d2p1:StoreSize>String</d2p1:StoreSize>
<d2p1:Zip>String</d2p1:Zip>
</Shipping>
<SubmittedOn>0001-01-01T00:00:00</SubmittedOn>
<TaxId>String</TaxId>
<Website>String</Website>
</RequestContact>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ContactRequested xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun.Shopping">
<Bcc xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Bcc>
<Body xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Body>
<Cc xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Cc>
<From xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</From>
<FromEmail xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</FromEmail>
<Message xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Message>
<Recipients xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/ServiceStack" />
<ReplyTo xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</ReplyTo>
<ReplyToList xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.datacontract.org/2004/07/ServiceStack" />
<SendTo xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</SendTo>
<StubbornVendorId xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</StubbornVendorId>
<Subject xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Subject>
<SubjectOverWrite xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</SubjectOverWrite>
<To xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</To>
<ToEmail xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</ToEmail>
<Billing xmlns:d2p1="http://schemas.datacontract.org/2004/07/Emun">
<d2p1:AccountType>String</d2p1:AccountType>
<d2p1:Address>String</d2p1:Address>
<d2p1:Address1>String</d2p1:Address1>
<d2p1:Address2>String</d2p1:Address2>
<d2p1:City>String</d2p1:City>
<d2p1:CompanyName>String</d2p1:CompanyName>
<d2p1:Country>String</d2p1:Country>
<d2p1:Custom2>String</d2p1:Custom2>
<d2p1:Email>String</d2p1:Email>
<d2p1:Fax>String</d2p1:Fax>
<d2p1:Id>String</d2p1:Id>
<d2p1: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>
</d2p1:Meta>
<d2p1:PersonName>
<d2p1:First>String</d2p1:First>
<d2p1:Full>String String String String String</d2p1:Full>
<d2p1:Last>String</d2p1:Last>
<d2p1:Middle>String</d2p1:Middle>
<d2p1:Salutation>String</d2p1:Salutation>
<d2p1:Suffix>String</d2p1:Suffix>
</d2p1:PersonName>
<d2p1:Phone>String</d2p1:Phone>
<d2p1:State>String</d2p1:State>
<d2p1:StoreSize>String</d2p1:StoreSize>
<d2p1:Zip>String</d2p1:Zip>
</Billing>
<CompanyName>String</CompanyName>
<ContactName>String</ContactName>
<Mailing xmlns:d2p1="http://schemas.datacontract.org/2004/07/Emun">
<d2p1:AccountType>String</d2p1:AccountType>
<d2p1:Address>String</d2p1:Address>
<d2p1:Address1>String</d2p1:Address1>
<d2p1:Address2>String</d2p1:Address2>
<d2p1:City>String</d2p1:City>
<d2p1:CompanyName>String</d2p1:CompanyName>
<d2p1:Country>String</d2p1:Country>
<d2p1:Custom2>String</d2p1:Custom2>
<d2p1:Email>String</d2p1:Email>
<d2p1:Fax>String</d2p1:Fax>
<d2p1:Id>String</d2p1:Id>
<d2p1: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>
</d2p1:Meta>
<d2p1:PersonName>
<d2p1:First>String</d2p1:First>
<d2p1:Full>String String String String String</d2p1:Full>
<d2p1:Last>String</d2p1:Last>
<d2p1:Middle>String</d2p1:Middle>
<d2p1:Salutation>String</d2p1:Salutation>
<d2p1:Suffix>String</d2p1:Suffix>
</d2p1:PersonName>
<d2p1:Phone>String</d2p1:Phone>
<d2p1:State>String</d2p1:State>
<d2p1:StoreSize>String</d2p1:StoreSize>
<d2p1:Zip>String</d2p1:Zip>
</Mailing>
<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>
<OrderNumber>String</OrderNumber>
<Phone>String</Phone>
<RequestType>String</RequestType>
<Shipping xmlns:d2p1="http://schemas.datacontract.org/2004/07/Emun">
<d2p1:AccountType>String</d2p1:AccountType>
<d2p1:Address>String</d2p1:Address>
<d2p1:Address1>String</d2p1:Address1>
<d2p1:Address2>String</d2p1:Address2>
<d2p1:City>String</d2p1:City>
<d2p1:CompanyName>String</d2p1:CompanyName>
<d2p1:Country>String</d2p1:Country>
<d2p1:Custom2>String</d2p1:Custom2>
<d2p1:Email>String</d2p1:Email>
<d2p1:Fax>String</d2p1:Fax>
<d2p1:Id>String</d2p1:Id>
<d2p1: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>
</d2p1:Meta>
<d2p1:PersonName>
<d2p1:First>String</d2p1:First>
<d2p1:Full>String String String String String</d2p1:Full>
<d2p1:Last>String</d2p1:Last>
<d2p1:Middle>String</d2p1:Middle>
<d2p1:Salutation>String</d2p1:Salutation>
<d2p1:Suffix>String</d2p1:Suffix>
</d2p1:PersonName>
<d2p1:Phone>String</d2p1:Phone>
<d2p1:State>String</d2p1:State>
<d2p1:StoreSize>String</d2p1:StoreSize>
<d2p1:Zip>String</d2p1:Zip>
</Shipping>
<SubmittedOn>0001-01-01T00:00:00</SubmittedOn>
<TaxId>String</TaxId>
<Website>String</Website>
</ContactRequested>