Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3947404
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T01:14:50+00:00 2026-05-20T01:14:50+00:00

Hi I have a WCF Rest 4.0 project. For some reason I have a

  • 0

Hi I have a WCF Rest 4.0 project. For some reason I have a webservice which should return Json and it does if i hit the endpoint over fiddler but thru firefox or chrome if I type in the address I get xml. Whats going on???

Thanks for any help! Here’s the code.

Web service in question:

  [OperationContract]
  [WebGet(UriTemplate = "",                  
          ResponseFormat = WebMessageFormat.Json,
          RequestFormat = WebMessageFormat.Json)]

        public SomeObject [] GetObjects()
        {
              .....

Object code:

[DataContract]
public class SomeObject
{      
        [DataMember]
        public string Date { get; private set; }

        ....
            public String Site { get; private set; }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T01:14:51+00:00Added an answer on May 20, 2026 at 1:14 am

    If you are using the .NET 4.0 framework, this is the solution: http://karnicki.eu/2011/02/rest-wcf-net-4-0-service-with-json-jsonp-for-jquery/

    WCF now has JSONP support out of the box with little configuration required.

    Basically you just need to edit/add two config file entries, authenticationMode and StandardEndpoint, and voila, you can view json response from your WCF service in any browser.

    EDIT: The original link is down – this might help: http://blog.shutupandcode.net/?p=696

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a WCF REST Service which accepts a JSON string One of the
I have a WCF Rest Service project set up serving JSON datastructures. I have
So I have wcf rest service which succesfuly runs from a console app, if
I have ASP MVC 3 application. I created WCF REST JSON Service and added
I am using WCF and REST, and I have complex types, which are working
I have some REST web services implemented in WCF. I wish to make these
Just started my first WCF rest project and would like some help on what
I have a WCF-REST service with one method which returns a string: [ServiceContract] public
I have a WCF REST service which needs to invoke a URL (could be
I have created a MVC 3 WCF Rest project using the tutorial described here

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.