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 7871447
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:54:32+00:00 2026-06-03T01:54:32+00:00

I need to create a .Net api that will return JSON that will be

  • 0

I need to create a .Net api that will return JSON that will be used by mobile applications.

One approach is to just use an MVC app and have my controller return JSON, so going to a url.com/controller/action/params would give me my JSON.

I’ve heard that creating a WCF Service is also a good choice. I don’t know much at all about WCF, though.

Are there pros and cons to each one? Is one more reliable to be used as a service that returns JSON only?

  • 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-06-03T01:54:34+00:00Added an answer on June 3, 2026 at 1:54 am

    Another contender is ASP.NET Web API which uses WCF in self hosted scenario.

    There are pros and cons but it all depends what you need now vs. latter, what is your level of expertise, technology commitment and what are the design trade-offs.

    It depends what you mean by reliable. One technology is not necessarily more or less reliable. There are many factors that go into reliability.

    These are some of the few pros/cons in no particular order, preference or completeness.

    ASP.Net MVC / WebApi / ServiceStack

    Pros:

    • Setup and running within minutes for basic scenario (have URL get some JSON data)
    • Simple to configure.
    • REST setup straight forward.
    • Complete control over routing.
    • JSON native support (ASP.NET Web API can automatically serialize
      your model to JSON, XML, or some other format, and then write
      the serialized data into the body of the HTTP response
      message.)

    Cons:

    • Cannot describe your service to a consumer: no api like WSDL exist as of yet that can tell the client data types, operations and service requirements
    • Transport security only – point-to-point security
    • No message level security
    • No Service Discovery protocols (as of now)
    • No Message routing
    • No multi-protocol support e.g. tcp
    • Single hosting scenario (IIS – this can be a pro too)

    WCF

    Pros:

    • Multi-protocol support
    • Transport and Message security
    • Highly configurable and inter-operable
    • Very extensible
    • Supports various messaging scenarios e.g. routing, duplex, pub/sub, queuing, etc.
    • Lots of knobs for shaping messages and internal workings
    • Wide variety of hosting scenarios (IIS/WAS, Windows Service, Console)

    Cons:

    • Steep learning curve
    • REST story weak (yes webHttpBinding exists but try explaining to someone TemplateURI and WebInvoke/Web get and BodyStyle)
    • Lots of knobs
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to create a file that will be used to store confidential data;
We need to create an .xls file in ASP .NET which will be imported
I need to create a service in .NET that maintains (inner) state in-memory, spawns
I have a need to create a transactional process using an external API that
I need to create a web application using ASP.NET MVC, jQuery and web standards
I need to create file sharing and chatting system like Microsoft Groove under .NET
I need to create a subscription for my SSRS reports in an asp.net page.
I need to create a Drop Down List in a Web User Control (.NET
I am using asp.net C# 2008, and I need to create a search textbox
I need a light CMS for .NET 3.5/C#/SQL Server with these features: Create/Edit Pages/Subpages

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.