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/ConfirmOtp HTTP/1.1
Host: galaxymobile.api.dev.86degrees.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<ConfirmOtp xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebService.ServiceModel">
<ApiKey xmlns="http://schemas.datacontract.org/2004/07/WebService.ServiceModel.Base">String</ApiKey>
<Latitude xmlns="http://schemas.datacontract.org/2004/07/WebService.ServiceModel.Base">0</Latitude>
<Longitude xmlns="http://schemas.datacontract.org/2004/07/WebService.ServiceModel.Base">0</Longitude>
<Otp>String</Otp>
<SystemUserId>0</SystemUserId>
<UtcOffset>0</UtcOffset>
</ConfirmOtp>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<ConfirmOtpResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebService.ServiceModel">
<Description xmlns="http://schemas.datacontract.org/2004/07/CommonService.Api.Models.Base">String</Description>
<Heading xmlns="http://schemas.datacontract.org/2004/07/CommonService.Api.Models.Base">String</Heading>
<ModelState xmlns="http://schemas.datacontract.org/2004/07/CommonService.Api.Models.Base" />
<WasSuccessful xmlns="http://schemas.datacontract.org/2004/07/CommonService.Api.Models.Base">false</WasSuccessful>
<Data>
<AllProducts>
<SystemUserProductData>
<ActionUrl>String</ActionUrl>
<Attachments>
<SystemUserProductAttachmentData>
<FileName>String</FileName>
<Id>0</Id>
<IsImage>false</IsImage>
<IsPdf>false</IsPdf>
<IsVideo>false</IsVideo>
<MainFileUrl>String</MainFileUrl>
<ThumbnailUrl>String</ThumbnailUrl>
</SystemUserProductAttachmentData>
</Attachments>
<DashImage>String</DashImage>
<DescriptionAfr>String</DescriptionAfr>
<DescriptionEng>String</DescriptionEng>
<Enquired>false</Enquired>
<IntegrationType>None</IntegrationType>
<Name>String</Name>
<NameAfrikaans>String</NameAfrikaans>
<PanicId>0</PanicId>
<ProductId>0</ProductId>
<ShowOnDash>false</ShowOnDash>
<SummaryAfr>String</SummaryAfr>
<SummaryEng>String</SummaryEng>
<UserHasProduct>false</UserHasProduct>
</SystemUserProductData>
</AllProducts>
<Dependents>
<DependentData>
<DependentId>0</DependentId>
<Email>String</Email>
<FirstName>String</FirstName>
<IdNumber>String</IdNumber>
<MobileNumber>String</MobileNumber>
<Surname>String</Surname>
</DependentData>
</Dependents>
<FirstName>String</FirstName>
<IsDependent>false</IsDependent>
<OtherProducts>
<SystemUserProductData>
<ActionUrl>String</ActionUrl>
<Attachments>
<SystemUserProductAttachmentData>
<FileName>String</FileName>
<Id>0</Id>
<IsImage>false</IsImage>
<IsPdf>false</IsPdf>
<IsVideo>false</IsVideo>
<MainFileUrl>String</MainFileUrl>
<ThumbnailUrl>String</ThumbnailUrl>
</SystemUserProductAttachmentData>
</Attachments>
<DashImage>String</DashImage>
<DescriptionAfr>String</DescriptionAfr>
<DescriptionEng>String</DescriptionEng>
<Enquired>false</Enquired>
<IntegrationType>None</IntegrationType>
<Name>String</Name>
<NameAfrikaans>String</NameAfrikaans>
<PanicId>0</PanicId>
<ProductId>0</ProductId>
<ShowOnDash>false</ShowOnDash>
<SummaryAfr>String</SummaryAfr>
<SummaryEng>String</SummaryEng>
<UserHasProduct>false</UserHasProduct>
</SystemUserProductData>
</OtherProducts>
<PendingFeedbackIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:int>0</d3p1:int>
</PendingFeedbackIds>
<RefreshToken>String</RefreshToken>
<SystemUserId>0</SystemUserId>
<UnreadMessageCount>0</UnreadMessageCount>
<UserProducts>
<SystemUserProductData>
<ActionUrl>String</ActionUrl>
<Attachments>
<SystemUserProductAttachmentData>
<FileName>String</FileName>
<Id>0</Id>
<IsImage>false</IsImage>
<IsPdf>false</IsPdf>
<IsVideo>false</IsVideo>
<MainFileUrl>String</MainFileUrl>
<ThumbnailUrl>String</ThumbnailUrl>
</SystemUserProductAttachmentData>
</Attachments>
<DashImage>String</DashImage>
<DescriptionAfr>String</DescriptionAfr>
<DescriptionEng>String</DescriptionEng>
<Enquired>false</Enquired>
<IntegrationType>None</IntegrationType>
<Name>String</Name>
<NameAfrikaans>String</NameAfrikaans>
<PanicId>0</PanicId>
<ProductId>0</ProductId>
<ShowOnDash>false</ShowOnDash>
<SummaryAfr>String</SummaryAfr>
<SummaryEng>String</SummaryEng>
<UserHasProduct>false</UserHasProduct>
</SystemUserProductData>
</UserProducts>
</Data>
<MustSetPin>false</MustSetPin>
</ConfirmOtpResponse>