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 /api/forms/completed HTTP/1.1
Host: cpo.hostedsuite.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<ListCompletedFormsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Evo.HostedSuite.Core.ServiceModel">
<CustomerName>String</CustomerName>
<Password>String</Password>
<UserName>String</UserName>
<DisableStats>false</DisableStats>
<ItemsPerPage>0</ItemsPerPage>
<Page>0</Page>
<SortDir>Asc</SortDir>
<SortField>String</SortField>
<ClientId>String</ClientId>
<EndDate>0001-01-01T00:00:00</EndDate>
<SpecificFormId>String</SpecificFormId>
<StartDate>0001-01-01T00:00:00</StartDate>
</ListCompletedFormsRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<PagedResponseBaseOfCompletedFormInfoq5tJnJZa xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Evo.HostedSuite.Core.ServiceModel">
<Items>
<CompletedFormInfo>
<CallRecordId>String</CallRecordId>
<CallerNumber>String</CallerNumber>
<ClientId>String</ClientId>
<ClientName>String</ClientName>
<ContactId>String</ContactId>
<ContactName>String</ContactName>
<DateCompleted>String</DateCompleted>
<EmailSubject>String</EmailSubject>
<Fields>
<CompletedFormFieldInfo>
<Name>String</Name>
<Values xmlns:d6p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d6p1:string>String</d6p1:string>
</Values>
</CompletedFormFieldInfo>
</Fields>
<HasBeenRead>false</HasBeenRead>
<Id>String</Id>
<LocalClientTime>String</LocalClientTime>
<Name>String</Name>
</CompletedFormInfo>
</Items>
<Page>0</Page>
<TotalCount>0</TotalCount>
<TotalPages>0</TotalPages>
</PagedResponseBaseOfCompletedFormInfoq5tJnJZa>