Search GimmeJob

Type at least 2 characters. Enter also searches by meaning.
QA interview question
Web, API & dataJuniorCommonTheory

What practical testing differences arise between REST-style HTTP APIs and SOAP services?

Answer

REST commonly uses HTTP resources and varied representations, while SOAP uses XML envelopes and formal service contracts with protocol extensions. In both, test contract, transport, authentication, faults, compatibility and business side effects rather than relying on labels.

Strong answer includes

  • resource versus message orientation
  • contracts and faults
  • avoids claiming one is inherently better

Practical example

Testing a legacy SOAP service, the tester validates the response against the WSDL-defined XML schema and checks SOAP fault codes for error cases, while for the REST counterpart they validate against an OpenAPI schema and check HTTP status codes — the underlying risks like broken contracts and unhandled errors are the same, only the mechanics differ.

#rest#soap#api

Sources

MDN HTTP referenceMozilla · HTTP methods, messages, status codes, headers, cookies and cachingOpenAPI Specification 3.2.0OpenAPI Initiative · API contracts, schemas and operation descriptionsDOU — QA interview: 250+ questionsDOU · Coverage signal across Junior, Middle, Senior, AQA, web, mobile and practical topics