Solved

json restful service , IE trying to download response

Posted on 2013-01-02
4
552 Views
Last Modified: 2013-01-11
Hi Guys,

I am trying to learn the basics of return data using a webservice in JSON format.

using this link

http://www.codeproject.com/Articles/105273/Create-RESTful-WCF-Service-API-Step-By-Step-Guide

Everytime I launch in my IE browser, IE tries to download it instead of open it in the browser.

I think I found a solution but I dont know how or where to actually set the reponse type to text.  Can someone please help out?

here is the link with my hopeful answer
http://stackoverflow.com/questions/1072595/json-xhr-response-opens-a-download-file-popup-window

thanks
0
Comment
Question by:solarissf
  • 2
  • 2
4 Comments
 
LVL 35

Expert Comment

by:Miguel Oz
ID: 38738572
What version of IE are you using? IE 8 or IE 9 and what mode? (Press F12 and check browser and document mode)
What version of VS2010 and .NET are you using?
0
 

Author Comment

by:solarissf
ID: 38738600
IE8... Browser mode IE8, IE8 standards
Microsoft Visual Web Developer 2010 Express
.net 4.0
0
 
LVL 35

Accepted Solution

by:
Miguel Oz earned 500 total points
ID: 38753561
In the REST service method attributes (IRestServiceImpl) modify
Method="GET"
with
Method="POST"
0
 

Author Comment

by:solarissf
ID: 38768262
thanks... I'll try the POST method and come back with the results
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
convert html to string 6 38
Moving code from one TFS branch to another 3 33
What are the simplest ways to create a Merge Sort? 3 29
Change to file doesn't show up 16 52
This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question