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/UpdateSalesOrderLineRDB HTTP/1.1
Host: www.bernhardt.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<UpdateSalesOrderLineRDB xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun.RestDb">
<Active>false</Active>
<BrandId>String</BrandId>
<CancelDate>0001-01-01T00:00:00</CancelDate>
<CaseDimensions>String</CaseDimensions>
<Category>String</Category>
<Color>String</Color>
<Comments>String</Comments>
<ContractPrice>false</ContractPrice>
<CreditCardAVS>String</CreditCardAVS>
<CreditCardAddress>String</CreditCardAddress>
<CreditCardAddress2>String</CreditCardAddress2>
<CreditCardCity>String</CreditCardCity>
<CreditCardCountry>String</CreditCardCountry>
<CreditCardExpiration>String</CreditCardExpiration>
<CreditCardName>String</CreditCardName>
<CreditCardNumber>String</CreditCardNumber>
<CreditCardState>String</CreditCardState>
<CreditCardType>String</CreditCardType>
<CreditCardZipcode>String</CreditCardZipcode>
<Cube>String</Cube>
<Custom10STR>String</Custom10STR>
<Custom11STR>String</Custom11STR>
<Custom12STR>String</Custom12STR>
<Custom13STR>String</Custom13STR>
<Custom14STR>String</Custom14STR>
<Custom15STR>String</Custom15STR>
<Custom1DBL>0</Custom1DBL>
<Custom1INT>0</Custom1INT>
<Custom1STR>String</Custom1STR>
<Custom2DBL>0</Custom2DBL>
<Custom2INT>0</Custom2INT>
<Custom2STR>String</Custom2STR>
<Custom3DBL>0</Custom3DBL>
<Custom3INT>0</Custom3INT>
<Custom3STR>String</Custom3STR>
<Custom4DBL>0</Custom4DBL>
<Custom4INT>0</Custom4INT>
<Custom4STR>String</Custom4STR>
<Custom5DBL>0</Custom5DBL>
<Custom5INT>0</Custom5INT>
<Custom5STR>String</Custom5STR>
<Custom6STR>String</Custom6STR>
<Custom7STR>String</Custom7STR>
<Custom8STR>String</Custom8STR>
<Custom9STR>String</Custom9STR>
<CustomerContractPrice>0</CustomerContractPrice>
<CustomerLevelPrice>0</CustomerLevelPrice>
<CustomerLineLevelDiscount>0</CustomerLineLevelDiscount>
<CustomerLineLevelQty>0</CustomerLineLevelQty>
<CustomerOrderLevelDiscount>0</CustomerOrderLevelDiscount>
<DICost>String</DICost>
<Description>String</Description>
<Discount>0</Discount>
<Duty>String</Duty>
<ESADate>0001-01-01T00:00:00</ESADate>
<EnforceESA>String</EnforceESA>
<Entered>0001-01-01T00:00:00</Entered>
<ExtendedTotal>0</ExtendedTotal>
<HTS>String</HTS>
<ItemGroupDiscount>0</ItemGroupDiscount>
<KitComponent>false</KitComponent>
<LineDiscount>0</LineDiscount>
<LineNotes>String</LineNotes>
<ListPrice>0</ListPrice>
<ManufacturerId>String</ManufacturerId>
<Notes>String</Notes>
<OptionGroupList>String</OptionGroupList>
<OrderDiscount>0</OrderDiscount>
<OrderNumber>String</OrderNumber>
<PONumber>String</PONumber>
<ParentPosition>0</ParentPosition>
<Port>String</Port>
<Position>0</Position>
<PriceList>String</PriceList>
<PriceOverride>0</PriceOverride>
<ProductId>String</ProductId>
<PromoCode>String</PromoCode>
<PromoCode2>String</PromoCode2>
<PromoDiscount>0</PromoDiscount>
<PromoDollarAmount>0</PromoDollarAmount>
<PromoNote>String</PromoNote>
<QtyAdjusted>false</QtyAdjusted>
<QtyBreakPrice>0</QtyBreakPrice>
<QtyOpen>0</QtyOpen>
<QtyOrdered>0</QtyOrdered>
<QtyShipped>0</QtyShipped>
<ReasonCode>String</ReasonCode>
<Revision>0</Revision>
<SalesPrice>0</SalesPrice>
<SalesRep>String</SalesRep>
<ShipDate>0001-01-01T00:00:00</ShipDate>
<ShipMethod>String</ShipMethod>
<SplitOrigSO>String</SplitOrigSO>
<Status>String</Status>
<SubCategory>String</SubCategory>
<SuperCategory>String</SuperCategory>
<TagFor>String</TagFor>
<Terms>String</Terms>
<UPC>String</UPC>
<UnitMeasure>String</UnitMeasure>
<Upcharge>0</Upcharge>
<UsedProductShipDate>false</UsedProductShipDate>
<Warehouse>String</Warehouse>
<WarehouseId>String</WarehouseId>
<Weight>String</Weight>
<xmlOptions>String</xmlOptions>
</UpdateSalesOrderLineRDB>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">0</int>