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 /xml/reply/GenerateCdnxAuthTokenRequest HTTP/1.1
Host: mobileapidevsw.greysheet.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GenerateCdnxAuthTokenRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cdn.MobileApi.RequestObjects">
<CdnxId>String</CdnxId>
<Password>String</Password>
<ReturnUrl>String</ReturnUrl>
<Username>String</Username>
</GenerateCdnxAuthTokenRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GenerateCdnxAuthTokenResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cdn.MobileApi.ResponseObjects">
<CachedResponse>false</CachedResponse>
<ErrorText>String</ErrorText>
<OpCode>0</OpCode>
<RequestTime>String</RequestTime>
<ResponseTime>String</ResponseTime>
<Total>0</Total>
<TotalExecutionTime>String</TotalExecutionTime>
<Address1>String</Address1>
<Address2>String</Address2>
<AvatarUrl>String</AvatarUrl>
<BuId>0</BuId>
<CdnxId>String</CdnxId>
<City>String</City>
<Company>String</Company>
<CompanyDescription>String</CompanyDescription>
<Country>String</Country>
<CustId>0</CustId>
<EbayId>String</EbayId>
<EmailAddress>String</EmailAddress>
<Extension>String</Extension>
<Facebook>String</Facebook>
<FirstName>String</FirstName>
<IndustryAffiliations>String</IndustryAffiliations>
<Instagram>String</Instagram>
<IsCdnxAdmin>false</IsCdnxAdmin>
<IsCdnxSubscriber>false</IsCdnxSubscriber>
<LastName>String</LastName>
<PhoneNumber>String</PhoneNumber>
<ProvinceRegion>String</ProvinceRegion>
<ReturnUrl>String</ReturnUrl>
<State>String</State>
<Token>String</Token>
<Twitter>String</Twitter>
<Username>String</Username>
<WebsiteUrl>String</WebsiteUrl>
<ZipCode>String</ZipCode>
</GenerateCdnxAuthTokenResponse>