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/UpdateProduct HTTP/1.1
Host: www.bernhardthospitality.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<UpdateProduct xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun.Products">
<Id xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Id>
<AltDescription>String</AltDescription>
<AsShownValues>
<OptionPrebuilt.FieldValue>
<CustomText>String</CustomText>
<FieldId>String</FieldId>
<ValueId>String</ValueId>
</OptionPrebuilt.FieldValue>
</AsShownValues>
<AvailableOn>0001-01-01T00:00:00</AvailableOn>
<AvailableQty>0</AvailableQty>
<CasePrice>0</CasePrice>
<CaseQty>0</CaseQty>
<Category>
<Id xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Id>
<Label>String</Label>
</Category>
<CategoryId>String</CategoryId>
<Cost>0</Cost>
<CreatedOn>0001-01-01T00:00:00</CreatedOn>
<CubicVolume>0</CubicVolume>
<Custom9>String</Custom9>
<EnforceMinimum>false</EnforceMinimum>
<Featured>0</Featured>
<GenericTags xmlns:d2p1="http://schemas.datacontract.org/2004/07/Emun.Tags">
<d2p1:Tag>
<d2p1:CreatedBy>String</d2p1:CreatedBy>
<d2p1:CreatedOn>0001-01-01T00:00:00</d2p1:CreatedOn>
<d2p1:Exported>false</d2p1:Exported>
<d2p1:Generated>false</d2p1:Generated>
<d2p1:LastModifiedBy>String</d2p1:LastModifiedBy>
<d2p1:LastModifiedOn>0001-01-01T00:00:00</d2p1:LastModifiedOn>
<d2p1:Position>0</d2p1:Position>
<d2p1:Id>1312561414.1312561</d2p1:Id>
<d2p1:ParentTagKind>String</d2p1:ParentTagKind>
<d2p1:ParentTagLabel>String</d2p1:ParentTagLabel>
<d2p1:PrincipalId>String</d2p1:PrincipalId>
<d2p1:Shard>String</d2p1:Shard>
<d2p1:TagKind>String</d2p1:TagKind>
<d2p1:TagLabel>String</d2p1:TagLabel>
</d2p1:Tag>
</GenericTags>
<Height>0</Height>
<ImageUrl>String</ImageUrl>
<IncomingQty>0</IncomingQty>
<IsB2B>false</IsB2B>
<IsB2C>false</IsB2C>
<IsDealerVisible>false</IsDealerVisible>
<IsKitEditable>false</IsKitEditable>
<IsKitExplode>false</IsKitExplode>
<IsNew>false</IsNew>
<IsNonDiscountable>false</IsNonDiscountable>
<IsRestricted>false</IsRestricted>
<IsSellable>false</IsSellable>
<ItemType>String</ItemType>
<Keywords>String</Keywords>
<Length>0</Length>
<Likes>1</Likes>
<ListPrice>0</ListPrice>
<LongDescription>String</LongDescription>
<MainFeatured>0</MainFeatured>
<ManufacturerNumber>String</ManufacturerNumber>
<MaxNumLines>0</MaxNumLines>
<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>
<MinimumOrderQty>0</MinimumOrderQty>
<OnDemandProductEuid>String</OnDemandProductEuid>
<OptionGroup>String</OptionGroup>
<OptionGroupList>String</OptionGroupList>
<Points>0</Points>
<Pricing xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
<ProductImages>
<ProductImage>
<CreatedOn>0001-01-01T00:00:00</CreatedOn>
<Position>0</Position>
<ProductId>String</ProductId>
</ProductImage>
</ProductImages>
<ProductLineId>String</ProductLineId>
<PurchaseIncrement>0</PurchaseIncrement>
<RetailListPrice>0</RetailListPrice>
<RetailPrice>0</RetailPrice>
<ShipOn>0001-01-01T00:00:00</ShipOn>
<ShortDescription>String</ShortDescription>
<Status>String</Status>
<SubCategory>String</SubCategory>
<SuperCategory>String</SuperCategory>
<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>
<UOM>String</UOM>
<UnitsAllocated>0</UnitsAllocated>
<UnitsInStock>0</UnitsInStock>
<UpcCode>String</UpcCode>
<Vendor xmlns:d2p1="http://schemas.datacontract.org/2004/07/Emun.Vendors">
<Id xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Id>
<d2p1:Abbreviation>String</d2p1:Abbreviation>
<d2p1:Active>false</d2p1:Active>
<d2p1:Address>String</d2p1:Address>
<d2p1:AllowBackorders>false</d2p1:AllowBackorders>
<d2p1:AllowDiscounts>false</d2p1:AllowDiscounts>
<d2p1:AllowManualItemEntry>false</d2p1:AllowManualItemEntry>
<d2p1:AllowPriceOverride>false</d2p1:AllowPriceOverride>
<d2p1:City>String</d2p1:City>
<d2p1:CommissionPercent>0</d2p1:CommissionPercent>
<d2p1:CustomerNumber>String</d2p1:CustomerNumber>
<d2p1:DecryptCCOnExport>false</d2p1:DecryptCCOnExport>
<d2p1:DefaultShipDatePrevious>false</d2p1:DefaultShipDatePrevious>
<d2p1:Email>String</d2p1:Email>
<d2p1:EmailOrders>false</d2p1:EmailOrders>
<d2p1:EmailUrlToExport>false</d2p1:EmailUrlToExport>
<d2p1:EnforceMinimums>false</d2p1:EnforceMinimums>
<d2p1:EnforcePurchaseIncrement>false</d2p1:EnforcePurchaseIncrement>
<d2p1:ExportOrders>false</d2p1:ExportOrders>
<d2p1:ExportReviewOrders>false</d2p1:ExportReviewOrders>
<d2p1:Fax>String</d2p1:Fax>
<d2p1:IncludeInBatch>false</d2p1:IncludeInBatch>
<d2p1:IsInvoiceOnly>false</d2p1:IsInvoiceOnly>
<d2p1:IsShowroomVendor>false</d2p1:IsShowroomVendor>
<d2p1:Label>String</d2p1:Label>
<d2p1:LastLoginAttempt>0001-01-01T00:00:00</d2p1:LastLoginAttempt>
<d2p1:LastOrderedOn>0001-01-01T00:00:00</d2p1:LastOrderedOn>
<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:MinimumBalance>0</d2p1:MinimumBalance>
<d2p1:Note>String</d2p1:Note>
<d2p1:OrderMinimum>0</d2p1:OrderMinimum>
<d2p1:OrderTagLine>String</d2p1:OrderTagLine>
<d2p1:Phone>String</d2p1:Phone>
<d2p1:ProductTags>
<d2p1:VendorProductTag>
<Id xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Id>
<d2p1:Tag>String</d2p1:Tag>
</d2p1:VendorProductTag>
</d2p1:ProductTags>
<d2p1:ReOrderMinimum>0</d2p1:ReOrderMinimum>
<d2p1:RequireCreditSheet>false</d2p1:RequireCreditSheet>
<d2p1:Settings>
<d2p1:VendorSetting>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value>String</d2p1:Value>
<d2p1:VendorId>String</d2p1:VendorId>
</d2p1:VendorSetting>
</d2p1:Settings>
<d2p1:SplitByProductLine>false</d2p1:SplitByProductLine>
<d2p1:State>String</d2p1:State>
<d2p1:Tags xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringArrayOfstringty7Ep6D1>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>
<d3p1:string>String</d3p1:string>
</d3p1:Value>
</d3p1:KeyValueOfstringArrayOfstringty7Ep6D1>
</d2p1:Tags>
<d2p1:UseVendorCustId>false</d2p1:UseVendorCustId>
<d2p1:UseVendorShipId>false</d2p1:UseVendorShipId>
<d2p1:UseVendorTerms>false</d2p1:UseVendorTerms>
<d2p1:VendorName>String</d2p1:VendorName>
<d2p1:Website>String</d2p1:Website>
<d2p1:Zip>String</d2p1:Zip>
</Vendor>
<VendorId>String</VendorId>
<Warehouse>String</Warehouse>
<Weight>0</Weight>
<WholesalePrice>0</WholesalePrice>
<Width>0</Width>
<NewTags>
<ProductTag>
<Generated>false</Generated>
<ParentTagKind>String</ParentTagKind>
<ParentTagLabel>String</ParentTagLabel>
<Position>0</Position>
<ProductId>String</ProductId>
<TagKind>String</TagKind>
<TagLabel>String</TagLabel>
</ProductTag>
</NewTags>
</UpdateProduct>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ProductUpdated xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun.Products">
<Id xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Id>
<AltDescription>String</AltDescription>
<AsShownValues>
<OptionPrebuilt.FieldValue>
<CustomText>String</CustomText>
<FieldId>String</FieldId>
<ValueId>String</ValueId>
</OptionPrebuilt.FieldValue>
</AsShownValues>
<AvailableOn>0001-01-01T00:00:00</AvailableOn>
<AvailableQty>0</AvailableQty>
<CasePrice>0</CasePrice>
<CaseQty>0</CaseQty>
<Category>
<Id xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Id>
<Label>String</Label>
</Category>
<CategoryId>String</CategoryId>
<Cost>0</Cost>
<CreatedOn>0001-01-01T00:00:00</CreatedOn>
<CubicVolume>0</CubicVolume>
<Custom9>String</Custom9>
<EnforceMinimum>false</EnforceMinimum>
<Featured>0</Featured>
<GenericTags xmlns:d2p1="http://schemas.datacontract.org/2004/07/Emun.Tags">
<d2p1:Tag>
<d2p1:CreatedBy>String</d2p1:CreatedBy>
<d2p1:CreatedOn>0001-01-01T00:00:00</d2p1:CreatedOn>
<d2p1:Exported>false</d2p1:Exported>
<d2p1:Generated>false</d2p1:Generated>
<d2p1:LastModifiedBy>String</d2p1:LastModifiedBy>
<d2p1:LastModifiedOn>0001-01-01T00:00:00</d2p1:LastModifiedOn>
<d2p1:Position>0</d2p1:Position>
<d2p1:Id>1312561414.1312561</d2p1:Id>
<d2p1:ParentTagKind>String</d2p1:ParentTagKind>
<d2p1:ParentTagLabel>String</d2p1:ParentTagLabel>
<d2p1:PrincipalId>String</d2p1:PrincipalId>
<d2p1:Shard>String</d2p1:Shard>
<d2p1:TagKind>String</d2p1:TagKind>
<d2p1:TagLabel>String</d2p1:TagLabel>
</d2p1:Tag>
</GenericTags>
<Height>0</Height>
<ImageUrl>String</ImageUrl>
<IncomingQty>0</IncomingQty>
<IsB2B>false</IsB2B>
<IsB2C>false</IsB2C>
<IsDealerVisible>false</IsDealerVisible>
<IsKitEditable>false</IsKitEditable>
<IsKitExplode>false</IsKitExplode>
<IsNew>false</IsNew>
<IsNonDiscountable>false</IsNonDiscountable>
<IsRestricted>false</IsRestricted>
<IsSellable>false</IsSellable>
<ItemType>String</ItemType>
<Keywords>String</Keywords>
<Length>0</Length>
<Likes>1</Likes>
<ListPrice>0</ListPrice>
<LongDescription>String</LongDescription>
<MainFeatured>0</MainFeatured>
<ManufacturerNumber>String</ManufacturerNumber>
<MaxNumLines>0</MaxNumLines>
<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>
<MinimumOrderQty>0</MinimumOrderQty>
<OnDemandProductEuid>String</OnDemandProductEuid>
<OptionGroup>String</OptionGroup>
<OptionGroupList>String</OptionGroupList>
<Points>0</Points>
<Pricing xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
<ProductImages>
<ProductImage>
<CreatedOn>0001-01-01T00:00:00</CreatedOn>
<Position>0</Position>
<ProductId>String</ProductId>
</ProductImage>
</ProductImages>
<ProductLineId>String</ProductLineId>
<PurchaseIncrement>0</PurchaseIncrement>
<RetailListPrice>0</RetailListPrice>
<RetailPrice>0</RetailPrice>
<ShipOn>0001-01-01T00:00:00</ShipOn>
<ShortDescription>String</ShortDescription>
<Status>String</Status>
<SubCategory>String</SubCategory>
<SuperCategory>String</SuperCategory>
<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>
<UOM>String</UOM>
<UnitsAllocated>0</UnitsAllocated>
<UnitsInStock>0</UnitsInStock>
<UpcCode>String</UpcCode>
<Vendor xmlns:d2p1="http://schemas.datacontract.org/2004/07/Emun.Vendors">
<Id xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Id>
<d2p1:Abbreviation>String</d2p1:Abbreviation>
<d2p1:Active>false</d2p1:Active>
<d2p1:Address>String</d2p1:Address>
<d2p1:AllowBackorders>false</d2p1:AllowBackorders>
<d2p1:AllowDiscounts>false</d2p1:AllowDiscounts>
<d2p1:AllowManualItemEntry>false</d2p1:AllowManualItemEntry>
<d2p1:AllowPriceOverride>false</d2p1:AllowPriceOverride>
<d2p1:City>String</d2p1:City>
<d2p1:CommissionPercent>0</d2p1:CommissionPercent>
<d2p1:CustomerNumber>String</d2p1:CustomerNumber>
<d2p1:DecryptCCOnExport>false</d2p1:DecryptCCOnExport>
<d2p1:DefaultShipDatePrevious>false</d2p1:DefaultShipDatePrevious>
<d2p1:Email>String</d2p1:Email>
<d2p1:EmailOrders>false</d2p1:EmailOrders>
<d2p1:EmailUrlToExport>false</d2p1:EmailUrlToExport>
<d2p1:EnforceMinimums>false</d2p1:EnforceMinimums>
<d2p1:EnforcePurchaseIncrement>false</d2p1:EnforcePurchaseIncrement>
<d2p1:ExportOrders>false</d2p1:ExportOrders>
<d2p1:ExportReviewOrders>false</d2p1:ExportReviewOrders>
<d2p1:Fax>String</d2p1:Fax>
<d2p1:IncludeInBatch>false</d2p1:IncludeInBatch>
<d2p1:IsInvoiceOnly>false</d2p1:IsInvoiceOnly>
<d2p1:IsShowroomVendor>false</d2p1:IsShowroomVendor>
<d2p1:Label>String</d2p1:Label>
<d2p1:LastLoginAttempt>0001-01-01T00:00:00</d2p1:LastLoginAttempt>
<d2p1:LastOrderedOn>0001-01-01T00:00:00</d2p1:LastOrderedOn>
<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:MinimumBalance>0</d2p1:MinimumBalance>
<d2p1:Note>String</d2p1:Note>
<d2p1:OrderMinimum>0</d2p1:OrderMinimum>
<d2p1:OrderTagLine>String</d2p1:OrderTagLine>
<d2p1:Phone>String</d2p1:Phone>
<d2p1:ProductTags>
<d2p1:VendorProductTag>
<Id xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Id>
<d2p1:Tag>String</d2p1:Tag>
</d2p1:VendorProductTag>
</d2p1:ProductTags>
<d2p1:ReOrderMinimum>0</d2p1:ReOrderMinimum>
<d2p1:RequireCreditSheet>false</d2p1:RequireCreditSheet>
<d2p1:Settings>
<d2p1:VendorSetting>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value>String</d2p1:Value>
<d2p1:VendorId>String</d2p1:VendorId>
</d2p1:VendorSetting>
</d2p1:Settings>
<d2p1:SplitByProductLine>false</d2p1:SplitByProductLine>
<d2p1:State>String</d2p1:State>
<d2p1:Tags xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringArrayOfstringty7Ep6D1>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>
<d3p1:string>String</d3p1:string>
</d3p1:Value>
</d3p1:KeyValueOfstringArrayOfstringty7Ep6D1>
</d2p1:Tags>
<d2p1:UseVendorCustId>false</d2p1:UseVendorCustId>
<d2p1:UseVendorShipId>false</d2p1:UseVendorShipId>
<d2p1:UseVendorTerms>false</d2p1:UseVendorTerms>
<d2p1:VendorName>String</d2p1:VendorName>
<d2p1:Website>String</d2p1:Website>
<d2p1:Zip>String</d2p1:Zip>
</Vendor>
<VendorId>String</VendorId>
<Warehouse>String</Warehouse>
<Weight>0</Weight>
<WholesalePrice>0</WholesalePrice>
<Width>0</Width>
</ProductUpdated>