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 /User/GetMyUserSettings/ HTTP/1.1
Host: baseservices.needion.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GetMyUserSettingsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Needio.Services.ServiceModel.v2">
<APIKey>String</APIKey>
<Cmd>String</Cmd>
<DeviceUUID>String</DeviceUUID>
<isAdmin>false</isAdmin>
<start>0001-01-01T00:00:00</start>
</GetMyUserSettingsRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetMyUserSettingsResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Needio.Services.ServiceModel.v2">
<Error>
<ErrorCode>String</ErrorCode>
<ErrorDescription>String</ErrorDescription>
<ErrorYn>false</ErrorYn>
<ExYn>false</ExYn>
</Error>
<PageInfo>
<CurrentPage>0</CurrentPage>
<TotalPageCount>0</TotalPageCount>
<TotalRecordCount>0</TotalRecordCount>
</PageInfo>
<ResMessage>String</ResMessage>
<Result>false</Result>
<UserSettings xmlns:d2p1="http://schemas.datacontract.org/2004/07/Needio.Services.ServiceModel.v2.Models">
<d2p1:AllowCommercialMessage>false</d2p1:AllowCommercialMessage>
<d2p1:BWhenNewCampaignDistance>0</d2p1:BWhenNewCampaignDistance>
<d2p1:BWhenNewCampaignNearMe>false</d2p1:BWhenNewCampaignNearMe>
<d2p1:BWhenNewCampaignPostTypes>String</d2p1:BWhenNewCampaignPostTypes>
<d2p1:BWhenNewFollowedUserPost>false</d2p1:BWhenNewFollowedUserPost>
<d2p1:BWhenOrderApproveRequired>false</d2p1:BWhenOrderApproveRequired>
<d2p1:BWhenOrderRateRequired>false</d2p1:BWhenOrderRateRequired>
<d2p1:BWhenPostPriceDecrease>false</d2p1:BWhenPostPriceDecrease>
<d2p1:SWhenNewOrder>false</d2p1:SWhenNewOrder>
<d2p1:SWhenNewPostFollow>false</d2p1:SWhenNewPostFollow>
<d2p1:SWhenNewPostLike>false</d2p1:SWhenNewPostLike>
<d2p1:SWhenNewUserFollow>false</d2p1:SWhenNewUserFollow>
<d2p1:SWhenOrderRated>false</d2p1:SWhenOrderRated>
<d2p1:SWhenPaymentApproved>false</d2p1:SWhenPaymentApproved>
<d2p1:SWhenPaymentRejected>false</d2p1:SWhenPaymentRejected>
<d2p1:SWhenPostExpire>false</d2p1:SWhenPostExpire>
<d2p1:SendDailyReport>false</d2p1:SendDailyReport>
<d2p1:UserId>0</d2p1:UserId>
<d2p1:WhenNewMessage>false</d2p1:WhenNewMessage>
</UserSettings>
</GetMyUserSettingsResponse>