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/UpdateInvoiceLineRDB HTTP/1.1
Host: www.bernhardthospitality.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<UpdateInvoiceLineRDB xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun.RestDb">
<BasePrice>0</BasePrice>
<BrandId>String</BrandId>
<CountName>String</CountName>
<Custom1STR>String</Custom1STR>
<Custom2STR>String</Custom2STR>
<Custom3STR>String</Custom3STR>
<Custom4STR>String</Custom4STR>
<Custom5STR>String</Custom5STR>
<DateSent>0001-01-01T00:00:00</DateSent>
<Description>String</Description>
<InvoiceNumber>String</InvoiceNumber>
<ListId>String</ListId>
<ListPrice>0</ListPrice>
<ManufacturerId>String</ManufacturerId>
<Notes>String</Notes>
<Position>0</Position>
<PricePaid>0</PricePaid>
<ProductId>String</ProductId>
<QtyBackordered>0</QtyBackordered>
<QtyOrdered>0</QtyOrdered>
<QtyShipped>0</QtyShipped>
<SalesRep>String</SalesRep>
<Sent>false</Sent>
<SuperCategory>String</SuperCategory>
<TrackingNumber>String</TrackingNumber>
<UnitOfMeasure>String</UnitOfMeasure>
</UpdateInvoiceLineRDB>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">0</int>