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 /Post/GetUserPostView HTTP/1.1
Host: baseservices.needion.com
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<GetUserPostViewsRequest 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>
<Count>0</Count>
<ExcludedPostId>0</ExcludedPostId>
<Page>0</Page>
</GetUserPostViewsRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<GetUserPostViewResponse 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>
<PostCount>0</PostCount>
<Posts xmlns:d2p1="http://schemas.datacontract.org/2004/07/Needio.Services.ServiceModel.v2.Models">
<d2p1:SItemDto>
<d2p1:AddCommisionYn>false</d2p1:AddCommisionYn>
<d2p1:AllowSaleYn>false</d2p1:AllowSaleYn>
<d2p1:AvgRate>0</d2p1:AvgRate>
<d2p1:Campaingn>
<d2p1:BeginDate>0001-01-01T00:00:00</d2p1:BeginDate>
<d2p1:CDiscountAmt>0</d2p1:CDiscountAmt>
<d2p1:CDiscountQty>0</d2p1:CDiscountQty>
<d2p1:CDiscountRate>0</d2p1:CDiscountRate>
<d2p1:CDiscountType>Percent</d2p1:CDiscountType>
<d2p1:CSalePrice>0</d2p1:CSalePrice>
<d2p1:CTotalPrice>0</d2p1:CTotalPrice>
<d2p1:CampaignApplied>false</d2p1:CampaignApplied>
<d2p1:CampaignCode>String</d2p1:CampaignCode>
<d2p1:CampaignId>0</d2p1:CampaignId>
<d2p1:CampaignMessage>String</d2p1:CampaignMessage>
<d2p1:CampaignType>OnlyList</d2p1:CampaignType>
<d2p1:Description>String</d2p1:Description>
<d2p1:EndDate>0001-01-01T00:00:00</d2p1:EndDate>
<d2p1:InputSalePrice>0</d2p1:InputSalePrice>
<d2p1:ItemId>0</d2p1:ItemId>
<d2p1:ItemType>Post</d2p1:ItemType>
<d2p1:LogoUrl>String</d2p1:LogoUrl>
<d2p1:Message>String</d2p1:Message>
<d2p1:MinimumQty>0</d2p1:MinimumQty>
<d2p1:NeedionRate>0</d2p1:NeedionRate>
<d2p1:SaleQty>0</d2p1:SaleQty>
<d2p1:ShowPriceYn>false</d2p1:ShowPriceYn>
</d2p1:Campaingn>
<d2p1:CargoPrice>0</d2p1:CargoPrice>
<d2p1:CategoryKey>String</d2p1:CategoryKey>
<d2p1:ConditionId>0</d2p1:ConditionId>
<d2p1:Description>String</d2p1:Description>
<d2p1:DidUserFollow>false</d2p1:DidUserFollow>
<d2p1:DiscountRate>0</d2p1:DiscountRate>
<d2p1:Distance>0</d2p1:Distance>
<d2p1:FollowCount>0</d2p1:FollowCount>
<d2p1:FriendlyURL>String</d2p1:FriendlyURL>
<d2p1:InStock>0</d2p1:InStock>
<d2p1:InStockYn>false</d2p1:InStockYn>
<d2p1:ItemHeader>String</d2p1:ItemHeader>
<d2p1:ItemId>0</d2p1:ItemId>
<d2p1:ItemKey>String</d2p1:ItemKey>
<d2p1:ItemName>String</d2p1:ItemName>
<d2p1:ItemType>Post</d2p1:ItemType>
<d2p1:ListPrice>0</d2p1:ListPrice>
<d2p1:ListPrice2>0</d2p1:ListPrice2>
<d2p1:Location>
<d2p1:GeoAddress>String</d2p1:GeoAddress>
<d2p1:IsDeleted>false</d2p1:IsDeleted>
<d2p1:Lat>String</d2p1:Lat>
<d2p1:Lon>String</d2p1:Lon>
</d2p1:Location>
<d2p1:MainMediaFriendlyURL>String</d2p1:MainMediaFriendlyURL>
<d2p1:MainMediaId>String</d2p1:MainMediaId>
<d2p1:MapAvatar>String</d2p1:MapAvatar>
<d2p1:MinSalePrice>0</d2p1:MinSalePrice>
<d2p1:ParentFriendlyURL>String</d2p1:ParentFriendlyURL>
<d2p1:ParentItemHeader>String</d2p1:ParentItemHeader>
<d2p1:ParentItemId>0</d2p1:ParentItemId>
<d2p1:ParentItemType>Post</d2p1:ParentItemType>
<d2p1:ParentMainMediaFriendlyURL>String</d2p1:ParentMainMediaFriendlyURL>
<d2p1:ParentMainMediaId>String</d2p1:ParentMainMediaId>
<d2p1:PostAge>0</d2p1:PostAge>
<d2p1:PostTypeId>0</d2p1:PostTypeId>
<d2p1:PriceType>0</d2p1:PriceType>
<d2p1:Properties>
<d2p1:PropertyDto>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value>String</d2p1:Value>
</d2p1:PropertyDto>
</d2p1:Properties>
<d2p1:PublishYn>false</d2p1:PublishYn>
<d2p1:RateCount>0</d2p1:RateCount>
<d2p1:SalePrice>0</d2p1:SalePrice>
<d2p1:Score>0</d2p1:Score>
<d2p1:StockType>0</d2p1:StockType>
<d2p1:Summary>String</d2p1:Summary>
<d2p1:VariantColorCount>0</d2p1:VariantColorCount>
<d2p1:ViewCount>0</d2p1:ViewCount>
</d2p1:SItemDto>
</Posts>
</GetUserPostViewResponse>