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/QueryVendorTerms HTTP/1.1
Host: www.bernhardthospitality.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<QueryVendorTerms xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun.Shopping">
<Fields xmlns="http://schemas.servicestack.net/types">String</Fields>
<Include xmlns="http://schemas.servicestack.net/types">String</Include>
<Meta xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" xmlns="http://schemas.servicestack.net/types">
<d2p1:KeyValueOfstringstring>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value>String</d2p1:Value>
</d2p1:KeyValueOfstringstring>
</Meta>
<OrderBy xmlns="http://schemas.servicestack.net/types">String</OrderBy>
<OrderByDesc xmlns="http://schemas.servicestack.net/types">String</OrderByDesc>
<Skip xmlns="http://schemas.servicestack.net/types">0</Skip>
<Take xmlns="http://schemas.servicestack.net/types">0</Take>
</QueryVendorTerms>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<QueryResponseOfVendorTermuJ_SpfPwd xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.servicestack.net/types">
<Offset>0</Offset>
<Total>0</Total>
<Results xmlns:d2p1="http://schemas.datacontract.org/2004/07/Emun.Shopping">
<d2p1:VendorTerm>
<d2p1:IsDefault>false</d2p1:IsDefault>
<d2p1:Term>
<Id xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Id>
<d2p1:IsB2B>false</d2p1:IsB2B>
<d2p1:IsCredit>false</d2p1:IsCredit>
<d2p1:IsStandard>false</d2p1:IsStandard>
<d2p1:Name>String</d2p1:Name>
</d2p1:Term>
<d2p1:TermId>String</d2p1:TermId>
<d2p1:Vendor xmlns:d4p1="http://schemas.datacontract.org/2004/07/Emun.Vendors">
<Id xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Id>
<d4p1:Abbreviation>String</d4p1:Abbreviation>
<d4p1:Active>false</d4p1:Active>
<d4p1:Address>String</d4p1:Address>
<d4p1:AllowBackorders>false</d4p1:AllowBackorders>
<d4p1:AllowDiscounts>false</d4p1:AllowDiscounts>
<d4p1:AllowManualItemEntry>false</d4p1:AllowManualItemEntry>
<d4p1:AllowPriceOverride>false</d4p1:AllowPriceOverride>
<d4p1:City>String</d4p1:City>
<d4p1:CommissionPercent>0</d4p1:CommissionPercent>
<d4p1:CustomerNumber>String</d4p1:CustomerNumber>
<d4p1:DecryptCCOnExport>false</d4p1:DecryptCCOnExport>
<d4p1:DefaultShipDatePrevious>false</d4p1:DefaultShipDatePrevious>
<d4p1:Email>String</d4p1:Email>
<d4p1:EmailOrders>false</d4p1:EmailOrders>
<d4p1:EmailUrlToExport>false</d4p1:EmailUrlToExport>
<d4p1:EnforceMinimums>false</d4p1:EnforceMinimums>
<d4p1:EnforcePurchaseIncrement>false</d4p1:EnforcePurchaseIncrement>
<d4p1:ExportOrders>false</d4p1:ExportOrders>
<d4p1:ExportReviewOrders>false</d4p1:ExportReviewOrders>
<d4p1:Fax>String</d4p1:Fax>
<d4p1:IncludeInBatch>false</d4p1:IncludeInBatch>
<d4p1:IsInvoiceOnly>false</d4p1:IsInvoiceOnly>
<d4p1:IsShowroomVendor>false</d4p1:IsShowroomVendor>
<d4p1:Label>String</d4p1:Label>
<d4p1:LastLoginAttempt>0001-01-01T00:00:00</d4p1:LastLoginAttempt>
<d4p1:LastOrderedOn>0001-01-01T00:00:00</d4p1:LastOrderedOn>
<d4p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d4p1:Meta>
<d4p1:MinimumBalance>0</d4p1:MinimumBalance>
<d4p1:Note>String</d4p1:Note>
<d4p1:OrderMinimum>0</d4p1:OrderMinimum>
<d4p1:OrderTagLine>String</d4p1:OrderTagLine>
<d4p1:Phone>String</d4p1:Phone>
<d4p1:ProductTags>
<d4p1:VendorProductTag>
<Id xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Id>
<d4p1:Tag>String</d4p1:Tag>
</d4p1:VendorProductTag>
</d4p1:ProductTags>
<d4p1:ReOrderMinimum>0</d4p1:ReOrderMinimum>
<d4p1:RequireCreditSheet>false</d4p1:RequireCreditSheet>
<d4p1:Settings>
<d4p1:VendorSetting>
<d4p1:Key>String</d4p1:Key>
<d4p1:Value>String</d4p1:Value>
<d4p1:VendorId>String</d4p1:VendorId>
</d4p1:VendorSetting>
</d4p1:Settings>
<d4p1:SplitByProductLine>false</d4p1:SplitByProductLine>
<d4p1:State>String</d4p1:State>
<d4p1: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>
</d4p1:Tags>
<d4p1:UseVendorCustId>false</d4p1:UseVendorCustId>
<d4p1:UseVendorShipId>false</d4p1:UseVendorShipId>
<d4p1:UseVendorTerms>false</d4p1:UseVendorTerms>
<d4p1:VendorName>String</d4p1:VendorName>
<d4p1:Website>String</d4p1:Website>
<d4p1:Zip>String</d4p1:Zip>
</d2p1:Vendor>
<d2p1:VendorId>String</d2p1:VendorId>
<d2p1:VendorTermCode>String</d2p1:VendorTermCode>
</d2p1:VendorTerm>
</Results>
<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>
<ResponseStatus>
<ErrorCode>String</ErrorCode>
<Message>String</Message>
<StackTrace>String</StackTrace>
<Errors>
<ResponseError>
<ErrorCode>String</ErrorCode>
<FieldName>String</FieldName>
<Message>String</Message>
<Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</Meta>
</ResponseError>
</Errors>
<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>
</Meta>
</ResponseStatus>
</QueryResponseOfVendorTermuJ_SpfPwd>