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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T00:11:55+00:00 2026-06-16T00:11:55+00:00

( Not a duplicate of Should i use rest or soap . That question

  • 0

( Not a duplicate of Should i use rest or soap. That question has only 1 answer which doesnt provide many arguments except overhead ).

Before marking this question as a duplicate, consider that I am looking for answers from people that made the choice before me and that explain their reasons based on their own experience. Answers that simply state “overhead” or “more complex” do not fit that profile.

Now for the question:

A while back I’ve started to setup a new api using Soap (PHP / Zend_Soap_Server, Zend_Soap_Autodiscover). Although I’ve figured out how to work with soap, the complexity makes me wonder if this is a good choice for future maintenance.

I’ve heard about REST, but do not have any experience with it.

So the question is: what are the pro/cons of REST vs SOAP and what is your suggestion when creating a fresh new api (rather complex api, several dozens of methods, using ssl, must have decent security etc), REST or SOAP.

If you think your answer hangs in the balance between REST and SOAP and a specific dependency or feature would tip the scale, be sure to ask whatever you need to know. I’ll answer as soon as I can.

A short list of the api’s features:

  • Authentication
  • Perform math functions for a frontend
  • Provide binary files to the frontend (invoices)
  • Basic CRUD of various sorts of information

The place of the api is basically as follows:

Internet -> website -> [internal network] -> API/Backend -> Database

Thank you for your time in advance..

  • 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-16T00:11:56+00:00Added an answer on June 16, 2026 at 12:11 am

    This is of course a very controversial topic, but at the same time, most new services are REST for a number of reasons. I won’t cover the differences between the two (as that is well documented) but more the reasons I think you’d build a new service, today (2012) using REST:

    • REST is much simpler, basically just building on top of HTTP
    • You can test (and debug) REST services using a web browser or something like curl or httpie. Yes this is technically possible with SOAP as well, but you have to somewhat understand the SOAP schema.
    • Similarly, you can build a REST client as long as you have a way to access HTTP. SOAP requires a SOAP-capable library
    • REST is more of a style and builds on top of HTTP, whereas SOAP is an entire protocol on top of HTTP (which is also a protocol)
    • SOAP ends up with crazy extension protocols like WS-Security, WS-Encryption (which, essentially, are incredibly complex designed-by-committee solutions to problems the rest of the internet solved for HTTP a couple decades ago)

    If you look around at some of the major APIs on the internet (eg Google, Facebook, Twitter, etc) you’ll find a lot of REST, and little to no SOAP. Those that do have SOAP interfaces are deprecating or dropping them completely, because there’s very little reason to stick with it any more.

    In fact, many of the big services are going a step further and only offering their REST services with JSON formatting, as opposed to XML or both, because like REST over SOAP, JSON has a lot of advantages in terms of size and simplicity over XML that it doesn’t make much sense to continue supporting XML.


    There are also almost no drawbacks to REST compared to SOAP.

    About the only practical consideration I can think of is from a client perspective. With SOAP (because of WSDL, assuming you produce one) you can point a SOAP-capable IDE at the service (such as VisualStudio) and it will generate a native client proxy API based on the remote service. This is somewhat nice in terms of getting up and running quickly, but has its own set of drawbacks: it forces you to use the objects defined in the service (whereas with REST, you can use your own object definitions as long as the data maps in), and depending on how the remote service handles versioning (or not) and how you use it, you may end up having to update major chunks of your app because of something as simple as a naming change.

    From the server perspective, I really can’t see any technical benefits to choosing SOAP over REST whatsoever.

    TL;DR: SOAP is not necessarily bad, it’s just that REST is better.

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

Sidebar

Related Questions

Possible Duplicate: Should I use != or <> for not equal in TSQL? Behavior
Note, this is not a duplicate of .prop() vs .attr() ; that question refers
Possible Duplicate: Should I use uint in C# for values that can’t be negative?
Possible Duplicate: Why not use tables for layout in HTML? When should I use
Possible Duplicate: Gui toolkits, which should I use? I've got a fair bit of
Possible Duplicate: When should I use a List vs a LinkedList This question is
Possible Duplicate: Should I use prototype or not? Closures in auto executing functions vs
Possible Duplicate: Why should I use Google's CDN for jQuery? I have seen many
Duplicate of: Should I use != or <> for not equal in TSQL Within
Possible Duplicate: Should ‘else’ be kept or dropped in cases where it’s not needed?

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.