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/UpdateProspectRDB HTTP/1.1
Host: www.bernhardthospitality.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<UpdateProspectRDB xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Emun.RestDb">
<AccountType>String</AccountType>
<Address1>String</Address1>
<Address2>String</Address2>
<BestCallTime>String</BestCallTime>
<Category>String</Category>
<City>String</City>
<CompanyName>String</CompanyName>
<Competition>String</Competition>
<ConvertedToCustomerId>String</ConvertedToCustomerId>
<Country>String</Country>
<DateContacted>0001-01-01T00:00:00</DateContacted>
<DateConverted>0001-01-01T00:00:00</DateConverted>
<DateCreated>0001-01-01T00:00:00</DateCreated>
<Email>String</Email>
<Hot>false</Hot>
<Id>String</Id>
<Modified>false</Modified>
<Name>String</Name>
<Notes>String</Notes>
<OrderSource>String</OrderSource>
<Phone>String</Phone>
<PotentialDollar>0</PotentialDollar>
<ProspectRanking>String</ProspectRanking>
<ProspectSource>String</ProspectSource>
<ProspectStatus>String</ProspectStatus>
<Qualification>String</Qualification>
<QualificationReason>String</QualificationReason>
<SalesRepId>String</SalesRepId>
<State>String</State>
<StoreTypeId>String</StoreTypeId>
<Title>String</Title>
<Uploaded>false</Uploaded>
<VendorIDs>String</VendorIDs>
<Website>String</Website>
<Zip>String</Zip>
</UpdateProspectRDB>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">0</int>