Solved

json restful service , IE trying to download response

Posted on 2013-01-02
4
550 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

While working on Silverlight and WCF application, I faced one issue where fault exception occurred at WCF operation contract is not getting propagated to Silverlight client. So after searching net I came to know that it was behavior by default for s…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

773 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