Skip to content

Postman and SoapUI โ€‹

Two tools for testing APIs without building a code framework: Postman for the day-to-day with REST, and SoapUI when SOAP services show up โ€” which in sectors like telecom or banking are still very much alive.

Postman: more than sending requests โ€‹

The basics take an afternoon; what makes the difference is using it with discipline:

  • Collections: requests organized by product or flow โ€” for example, one collection for the /service-orders API: create the order, query its status, cancel it โ€” versioned and shared with the team (they export to JSON and can live in the repo).
  • Environments and variables: the same collection runs against dev, staging or production by switching the environment. Credentials go in variables, never written into the request.
  • Tests: every request can carry JavaScript assertions (pm.expect(...)) โ€” status, body fields, timings. A collection without assertions isn't a suite: it's a request launcher.
  • Newman / Postman CLI: collections run from the command line, which lets you put them in the CI pipeline.

When Postman and when a code framework like REST Assured? Postman shines for exploring APIs, reproducing bugs and shareable smoke tests; for a large suite with logic and code review, an API testing framework scales better.

SOAP in two minutes โ€‹

SOAP is the protocol that predates REST and remains common in integration systems:

RESTSOAP
FormatJSON (usually)Always XML, inside an envelope
ContractOpenAPI (optional)WSDL (mandatory): defines operations, types and XSD validation
OperationsHTTP verbs over resourcesNamed operations (like function calls)
ValidationJSON SchemaXSD schemas and XPath

The WSDL is the big advantage for a QA: it's a formal, complete contract. If the response doesn't match the schema, it's a bug โ€” no debate.

SoapUI: testing against the WSDL โ€‹

  • You import the WSDL โ€” say, that of a provisioning service exposing an activateService operation โ€” and SoapUI generates the requests for each operation with their XML structure ready to fill in.
  • The key assertions: Schema Compliance (the response matches the XSD), XPath Match (a specific value inside the XML, like the service's status after activation) and SOAP Fault / Not SOAP Fault (protocol errors).
  • It organizes work into test suites and test cases that also run from the command line, so it can integrate into CI.
  • It handles REST too, although for pure REST Postman is usually more comfortable.

Common mistakes โ€‹

  • Requests without assertions. Eyeballing a 200 isn't testing; write down the expectations.
  • Unversioned collections. If the collection only lives in someone's account, it's knowledge waiting to be lost; export and commit.
  • Ignoring the WSDL. In SOAP the contract already exists: testing without validating the schema wastes half the tool.
  • Hardcoded credentials in exported requests โ€” they end up in the repo, and Git doesn't forget.

Key idea

The tool changes, the question doesn't: what is the contract and how do I verify it holds? In REST you have to build the contract (schemas, specs); in SOAP it comes built in with the WSDL โ€” use it.

References โ€‹