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 /Outbound/Campaigns/{CampaignId}/Conversions HTTP/1.1
Host: stubbur-app.azurewebsites.net
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<OutboundCampaignConversionsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<CampaignId>0</CampaignId>
<WindowHours>0</WindowHours>
</OutboundCampaignConversionsRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<OutboundCampaignConversionsResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TicketUserServices.ServiceModel">
<CampaignId>0</CampaignId>
<HoldoutConverted>0</HoldoutConverted>
<HoldoutPeople>0</HoldoutPeople>
<HoldoutRate>0</HoldoutRate>
<LiftPoints>0</LiftPoints>
<Message>String</Message>
<Note>String</Note>
<SentConverted>0</SentConverted>
<SentPeople>0</SentPeople>
<SentRate>0</SentRate>
<StatusCode>0</StatusCode>
</OutboundCampaignConversionsResult>