To override the Content-type in your clients, use the HTTP Accept Header, append the .soap12 suffix or ?format=soap12
HTTP + SOAP12
The following are sample HTTP requests and responses.
The placeholders shown need to be replaced with actual values.
POST /soap12 HTTP/1.1
Host: www.bernhardthospitality.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<QueryInvoices xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun.Orders">
<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>
<DateRange>String</DateRange>
<InvoiceNumber>String</InvoiceNumber>
<OrderNumber>String</OrderNumber>
<Search>String</Search>
<clientDateTime>String</clientDateTime>
<currentDate>0001-01-01T00:00:00</currentDate>
</QueryInvoices>
</soap12:Body>
</soap12:Envelope>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope">
<soap12:Body>
<QueryResponseOfInvoicezUfGIW9z 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.Orders">
<d2p1:Invoice>
<Id xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Id>
<d2p1:ActivationCode>String</d2p1:ActivationCode>
<d2p1:BillAddress>String</d2p1:BillAddress>
<d2p1:BillAddress2>String</d2p1:BillAddress2>
<d2p1:BillCity>String</d2p1:BillCity>
<d2p1:BillCountry>String</d2p1:BillCountry>
<d2p1:BillName>String</d2p1:BillName>
<d2p1:BillPhone>String</d2p1:BillPhone>
<d2p1:BillState>String</d2p1:BillState>
<d2p1:BillZip>String</d2p1:BillZip>
<d2p1:BillingLocation xmlns:d4p1="http://schemas.datacontract.org/2004/07/Emun">
<d4p1:AccountType i:nil="true" />
<d4p1:Address>String</d4p1:Address>
<d4p1:Address1>String</d4p1:Address1>
<d4p1:Address2>String</d4p1:Address2>
<d4p1:City>String</d4p1:City>
<d4p1:CompanyName>String</d4p1:CompanyName>
<d4p1:Country>String</d4p1:Country>
<d4p1:Custom2 i:nil="true" />
<d4p1:Email i:nil="true" />
<d4p1:Fax i:nil="true" />
<d4p1:Id>String</d4p1:Id>
<d4p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
<d4p1:PersonName>
<d4p1:First>String</d4p1:First>
<d4p1:Full>String</d4p1:Full>
<d4p1:Last />
<d4p1:Middle />
<d4p1:Salutation />
<d4p1:Suffix />
</d4p1:PersonName>
<d4p1:Phone i:nil="true" />
<d4p1:State>String</d4p1:State>
<d4p1:StoreSize i:nil="true" />
<d4p1:Zip>String</d4p1:Zip>
</d2p1:BillingLocation>
<d2p1:Buyer>String</d2p1:Buyer>
<d2p1:CompanyName>String</d2p1:CompanyName>
<d2p1:CreditCardType>String</d2p1:CreditCardType>
<d2p1:Custom1>String</d2p1:Custom1>
<d2p1:Custom2>String</d2p1:Custom2>
<d2p1:CustomerPORef>String</d2p1:CustomerPORef>
<d2p1:DaysPastDue>0</d2p1:DaysPastDue>
<d2p1:DueDate>0001-01-01T00:00:00</d2p1:DueDate>
<d2p1:InvoiceBalance>0</d2p1:InvoiceBalance>
<d2p1:InvoiceDate>0001-01-01T00:00:00</d2p1:InvoiceDate>
<d2p1:InvoiceNumber>String</d2p1:InvoiceNumber>
<d2p1:InvoiceTotal>0</d2p1:InvoiceTotal>
<d2p1:Messages xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
<d2p1:Meta xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfstringstring>
<d4p1:Key>String</d4p1:Key>
<d4p1:Value>String</d4p1:Value>
</d4p1:KeyValueOfstringstring>
</d2p1:Meta>
<d2p1:OrderDate>0001-01-01T00:00:00</d2p1:OrderDate>
<d2p1:OrderNumber>String</d2p1:OrderNumber>
<d2p1:OrderTotal>0</d2p1:OrderTotal>
<d2p1:PONumber>String</d2p1:PONumber>
<d2p1:ParcelCount>0</d2p1:ParcelCount>
<d2p1:PaymentTermInvoice>
<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:PaymentTermInvoice>
<d2p1:PaymentTermsId>String</d2p1:PaymentTermsId>
<d2p1:RetailerEmail>String</d2p1:RetailerEmail>
<d2p1:RetailerId>String</d2p1:RetailerId>
<d2p1:Revision>0</d2p1:Revision>
<d2p1:SalesRep>
<Id xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Id>
<d2p1:Email>String</d2p1:Email>
<d2p1:Name>String</d2p1:Name>
</d2p1:SalesRep>
<d2p1:SalesRepID>String</d2p1:SalesRepID>
<d2p1:ShipId>String</d2p1:ShipId>
<d2p1:ShipOn>0001-01-01T00:00:00</d2p1:ShipOn>
<d2p1:ShippingLocation xmlns:d4p1="http://schemas.datacontract.org/2004/07/Emun">
<d4p1:AccountType i:nil="true" />
<d4p1:Address>String</d4p1:Address>
<d4p1:Address1>String</d4p1:Address1>
<d4p1:Address2>String</d4p1:Address2>
<d4p1:City>String</d4p1:City>
<d4p1:CompanyName>String</d4p1:CompanyName>
<d4p1:Country>String</d4p1:Country>
<d4p1:Custom2 i:nil="true" />
<d4p1:Email i:nil="true" />
<d4p1:Fax i:nil="true" />
<d4p1:Id>String</d4p1:Id>
<d4p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" />
<d4p1:PersonName>
<d4p1:First>String</d4p1:First>
<d4p1:Full>String</d4p1:Full>
<d4p1:Last />
<d4p1:Middle />
<d4p1:Salutation />
<d4p1:Suffix />
</d4p1:PersonName>
<d4p1:Phone i:nil="true" />
<d4p1:State>String</d4p1:State>
<d4p1:StoreSize i:nil="true" />
<d4p1:Zip>String</d4p1:Zip>
</d2p1:ShippingLocation>
<d2p1:ShippingLocationAddress>String</d2p1:ShippingLocationAddress>
<d2p1:ShippingLocationAddress2>String</d2p1:ShippingLocationAddress2>
<d2p1:ShippingLocationCity>String</d2p1:ShippingLocationCity>
<d2p1:ShippingLocationCountry>String</d2p1:ShippingLocationCountry>
<d2p1:ShippingLocationName>String</d2p1:ShippingLocationName>
<d2p1:ShippingLocationPhone>String</d2p1:ShippingLocationPhone>
<d2p1:ShippingLocationState>String</d2p1:ShippingLocationState>
<d2p1:ShippingLocationZip>String</d2p1:ShippingLocationZip>
<d2p1:ShippingMethodId>String</d2p1:ShippingMethodId>
<d2p1:ShippingMethodInvoice>
<Id xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Id>
<d2p1:IsStandard>false</d2p1:IsStandard>
<d2p1:Name>String</d2p1:Name>
</d2p1:ShippingMethodInvoice>
<d2p1:Source>String</d2p1:Source>
<d2p1:SourceId>String</d2p1:SourceId>
<d2p1:Status>String</d2p1:Status>
<d2p1:TagFor>String</d2p1:TagFor>
<d2p1:Tags xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:KeyValueOfstringArrayOfstringty7Ep6D1>
<d4p1:Key>String</d4p1:Key>
<d4p1:Value>
<d4p1:string>String</d4p1:string>
</d4p1:Value>
</d4p1:KeyValueOfstringArrayOfstringty7Ep6D1>
</d2p1:Tags>
<d2p1:TotalDiscount>0</d2p1:TotalDiscount>
<d2p1:TotalFreight>0</d2p1:TotalFreight>
<d2p1:TotalOrder>0</d2p1:TotalOrder>
<d2p1:TotalShipped>0</d2p1:TotalShipped>
<d2p1:TransactionType>String</d2p1:TransactionType>
<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:WritingRep>
<Id xmlns="http://schemas.datacontract.org/2004/07/ServiceStack">String</Id>
<d2p1:Name>String</d2p1:Name>
</d2p1:WritingRep>
<d2p1:WritingRepID>String</d2p1:WritingRepID>
<d2p1:CubicVolume>0</d2p1:CubicVolume>
<d2p1:LineCount>1</d2p1:LineCount>
<d2p1:Lines>
<d2p1:InvoiceLine>
<d2p1:Description>String</d2p1:Description>
<d2p1:InvoiceNumber>String</d2p1:InvoiceNumber>
<d2p1:ListPrice>0</d2p1:ListPrice>
<d2p1:Meta xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:KeyValueOfstringstring>
<d6p1:Key>String</d6p1:Key>
<d6p1:Value>String</d6p1:Value>
</d6p1:KeyValueOfstringstring>
</d2p1:Meta>
<d2p1:Notes>String</d2p1:Notes>
<d2p1:Position>0</d2p1:Position>
<d2p1:Price>0</d2p1:Price>
<d2p1:Product>
<d2p1:AltDescription>String</d2p1:AltDescription>
<d2p1:AvailableOn>0001-01-01T00:00:00</d2p1:AvailableOn>
<d2p1:AvailableQty>0</d2p1:AvailableQty>
<d2p1:CategoryId>String</d2p1:CategoryId>
<d2p1:Cost>0</d2p1:Cost>
<d2p1:CreatedOn>0001-01-01T00:00:00</d2p1:CreatedOn>
<d2p1:CubicVolume>0</d2p1:CubicVolume>
<d2p1:Featured>0</d2p1:Featured>
<d2p1:Height>0</d2p1:Height>
<d2p1:Id>String</d2p1:Id>
<d2p1:ImageUrl>String</d2p1:ImageUrl>
<d2p1:IncomingQty>0</d2p1:IncomingQty>
<d2p1:IsNew>false</d2p1:IsNew>
<d2p1:IsRestricted>false</d2p1:IsRestricted>
<d2p1:ItemType>String</d2p1:ItemType>
<d2p1:Keywords>String</d2p1:Keywords>
<d2p1:Length>0</d2p1:Length>
<d2p1:ListPrice>0</d2p1:ListPrice>
<d2p1:LongDescription>String</d2p1:LongDescription>
<d2p1:ManufacturerNumber>String</d2p1:ManufacturerNumber>
<d2p1:MinimumOrderQty>0</d2p1:MinimumOrderQty>
<d2p1:OnDemandProductEuid>String</d2p1:OnDemandProductEuid>
<d2p1:OptionGroup>String</d2p1:OptionGroup>
<d2p1:OptionGroupList>String</d2p1:OptionGroupList>
<d2p1:Pricing xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
<d2p1:ProductLineId>String</d2p1:ProductLineId>
<d2p1:PurchaseIncrement>0</d2p1:PurchaseIncrement>
<d2p1:RetailListPrice>0</d2p1:RetailListPrice>
<d2p1:RetailPrice>0</d2p1:RetailPrice>
<d2p1:ShipOn>0001-01-01T00:00:00</d2p1:ShipOn>
<d2p1:ShortDescription>String</d2p1:ShortDescription>
<d2p1:Status>String</d2p1:Status>
<d2p1:SubCategory>String</d2p1:SubCategory>
<d2p1:SuperCategory>String</d2p1:SuperCategory>
<d2p1:UOM>String</d2p1:UOM>
<d2p1:UnitsInStock>0</d2p1:UnitsInStock>
<d2p1:UpcCode>String</d2p1:UpcCode>
<d2p1:VendorId>String</d2p1:VendorId>
<d2p1:Weight>0</d2p1:Weight>
<d2p1:WholesalePrice>0</d2p1:WholesalePrice>
</d2p1:Product>
<d2p1:ProductId>String</d2p1:ProductId>
<d2p1:QtyBackordered>0</d2p1:QtyBackordered>
<d2p1:QtyOrdered>0</d2p1:QtyOrdered>
<d2p1:QtyShipped>0</d2p1:QtyShipped>
<d2p1:UOM>String</d2p1:UOM>
<d2p1:VendorId>String</d2p1:VendorId>
</d2p1:InvoiceLine>
</d2p1:Lines>
<d2p1:QtyOrdered>0</d2p1:QtyOrdered>
<d2p1:QtyShipped>0</d2p1:QtyShipped>
<d2p1:Weight>0</d2p1:Weight>
</d2p1:Invoice>
</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>
</QueryResponseOfInvoicezUfGIW9z>
</soap12:Body>
</soap12:Envelope>