Click here to Skip to main content
15,896,269 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I have an Angular + ASP.Net WebAPI Application. I am posting a JSON query to an API and in return getting the RSS formatted feed.
JavaScript
$scope.rss = function(query){
   $http.post("api/url", query)
      .success(function(response){
         //I have RSS feed (xml string) in response
         //But cannot publish it as RSS
         /*response = "<?xml version="1.0" encoding="UTF-8" ?>
                         <rss version="2.0">
                           <channel>
                              ...
                           </channel>
                         </rss>"*/
      })
      .error(function(e){
         //error
      });
}


Now, my API accepts HttpPost, and I cannot use HttpGet because, the query can get really big. Is there any way to solve it?
Posted
Comments
Nathan Minier 3-Feb-15 7:29am    
I haven't used this article, but http://www.codeproject.com/Articles/817417/FreedReadR-RSS-Reader-Created-With-AngularJS-part looks comprehensive, and should provide you a good source to mine from if nothing else.
debashishPaul 3-Feb-15 22:49pm    
Hi Nathan, thanks for the suggestion. But the article you referred, is about implementing an RSS reader. But my problem is publishing the RSS.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900