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 /Apple/Authorise HTTP/1.1
Host: tstsrvs.redhotpie.com.au
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<AuthoriseApple xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RHP_API.ServiceModel">
<code>String</code>
<error>String</error>
<id_token>String</id_token>
<state>String</state>
<user>String</user>
</AuthoriseApple>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<AppleUserToken xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RHP_API.ServiceModel">
<aud>String</aud>
<email>String</email>
<email_verified>false</email_verified>
<exp>0</exp>
<iat>0</iat>
<is_private_email>false</is_private_email>
<iss>String</iss>
<nonce>String</nonce>
<nonce_supported>false</nonce_supported>
<real_user_status>0</real_user_status>
<sub>String</sub>
</AppleUserToken>