</>

Technology

Rest Assured

Difficulty

Intermediate

Interview Question

What is the major drawback of using SOAP?

Answer

Major Drawback of SOAP

When using SOAP, the firewall security mechanism is the biggest obstacle.

Key Issues

1. Firewall Port Blocking

SOAP works over HTTP port 80 and uses its own port. Firewalls often block all ports leaving only a few like HTTP port 80 open.

The HTTP port used by SOAP can bypass the firewall — this is a security concern that many organizations block by restricting SOAP traffic.

2. Mixed Concerns

The technical complaint against SOAP is that it mixes the specification for message transport with the specification for message structure. This tight coupling makes the protocol more complex.

3. Other SOAP Disadvantages

IssueDetail
VerboseXML-based, much larger payload than REST JSON
SlowXML parsing is computationally expensive
ComplexRequires WSDL, strict schema, envelope structure
Limited browser supportREST is native to browsers; SOAP is not
Less flexibleREST supports JSON, XML, HTML; SOAP is XML-only

SOAP vs REST Summary

FeatureSOAPREST
FormatXML onlyJSON, XML, HTML, plain text
SpeedSlowerFaster
StandardsStrict (WSDL)Flexible
Security built-inWS-SecurityRelies on HTTPS/OAuth
Browser-friendlyNoYes

Follow AutomateQA

Related Topics