?
Solved

json restful service , IE trying to download response

Posted on 2013-01-02
4
Medium Priority
?
564 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 36

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 36

Accepted Solution

by:
Miguel Oz earned 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

One of the pain points with developing AJAX, JavaScript, JQuery, and other client-side behaviors is that JavaScript doesn’t allow for cross domain request for pulling content. For example, JavaScript code on www.johnchapman.name could not pull conte…
IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Suggested Courses
Course of the Month14 days, 22 hours left to enroll

770 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