Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 585
  • Last Modified:

json restful service , IE trying to download response

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
solarissf
Asked:
solarissf
  • 2
  • 2
1 Solution
 
Miguel OzSoftware EngineerCommented:
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
 
solarissfAuthor Commented:
IE8... Browser mode IE8, IE8 standards
Microsoft Visual Web Developer 2010 Express
.net 4.0
0
 
Miguel OzSoftware EngineerCommented:
In the REST service method attributes (IRestServiceImpl) modify
Method="GET"
with
Method="POST"
0
 
solarissfAuthor Commented:
thanks... I'll try the POST method and come back with the results
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now