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 /Support HTTP/1.1
Host: tstsrvs.redhotpie.com.au
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<CreateSupportTicket xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RHP_API.ServiceModel">
<CategoryID xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">0</CategoryID>
<EmailAddress xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">String</EmailAddress>
<Enquiry xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">String</Enquiry>
<IPAddress xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">String</IPAddress>
<SiteCountryID xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">0</SiteCountryID>
<Subject xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">String</Subject>
<SuppliedUsername xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">String</SuppliedUsername>
<UserAgent xmlns="http://schemas.datacontract.org/2004/07/RHP.ServiceHelper.Model">String</UserAgent>
</CreateSupportTicket>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<SupportTicket xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RHP.Model">
<AdditionalInfo>String</AdditionalInfo>
<AdministratorID>0</AdministratorID>
<CategoryID>0</CategoryID>
<CountryID>0</CountryID>
<DateCreated>0001-01-01T00:00:00</DateCreated>
<DateLastChecked>0001-01-01T00:00:00</DateLastChecked>
<EmailAddress>String</EmailAddress>
<IsPrivate>false</IsPrivate>
<IsRequiredResponse>false</IsRequiredResponse>
<LastResponseID>0</LastResponseID>
<MemberID>0</MemberID>
<Message>String</Message>
<ParentType>Member</ParentType>
<Priority>0</Priority>
<Reference>String</Reference>
<Status>0</Status>
<SuppliedHandle>String</SuppliedHandle>
<SupportTicketID>0</SupportTicketID>
<Title>String</Title>
<UseStoredEmail>false</UseStoredEmail>
</SupportTicket>