Client API isn’t REST? Ask for the contract and skip the manual
SOAP, gRPC and GraphQL each rest on a strict, formal contract, and getting hold of it is the shortcut to a successful call on day one.
In brief
- With SOAP, gRPC or GraphQL, always start by asking for the contract: the WSDL, .proto file or schema.
- Make the first call the simplest one: one operation, one unary RPC, one query with a few fields.
- Finish the day with a function that has a timeout and reports errors clearly; a script that only ran once is not enough.
At nine o’clock on your first morning at a client site, you ask for the order system’s API. The answer may be “we use SOAP,” “there’s an internal gRPC service” or “just call /graphql.”
If you only know REST, a stateless architectural style in which each request carries everything the server needs to understand and process it, all three sound like three weeks of reading documentation.
The job is smaller than that. All three protocols rest on a tightly structured contract, and that contract is the shortcut. Ask for the right file, make the easiest call, and you can get a successful response the same day.
For an FDE, this is a skill to practice before arriving on site. The sooner you can call the client’s system, the sooner you have real data to work with instead of waiting.
What should you have by the end of the day?
The goal is a one-page “integration card” for each system. It records the protocol, the contract file, a sample call that works, the timeout you chose and what errors look like. Alongside it goes a small function in your code that the whole team can call.
You need little in advance: network access to the client’s test environment, credentials, and a language you write quickly. gRPC lets client and server be written in different languages, provided gRPC supports them. Whatever the client’s server is written in, you can keep your stack.
The table below sets out what to do for each protocol. The last column is practical advice: whichever protocol you face, make one bad call on purpose and see for yourself what the error looks like before writing code to handle it.
| Protocol | Contract to ask for | First call to make | What to observe when testing errors |
|---|---|---|---|
| SOAP | WSDL file | A read-only operation with few parameters | The Fault element in the body |
| gRPC | .proto file | A unary RPC | Make one bad call and record the error the client returns |
| GraphQL | Schema (type system) | A query for two or three fields | Send a bad query and record the response |
Step 1: Ask “where is the contract?” before “where is the API?”
The first question shapes the whole day. With SOAP, according to SmartBear, a service must have a WSDL file defining every operation along with its inputs and outputs. With gRPC, Protocol Buffers serve as both the serialization format and the interface definition language (IDL), so the .proto file is the contract.
GraphQL is slightly different: the API is organized around types and fields rather than endpoints. Every GraphQL service defines a type system, which tools can use to check a query’s syntax before it runs. What you need is the schema, plus the endpoint address.
Check after this step: you have the contract file and can find at least one read-only operation in it. If the client sends a PDF guide instead of a WSDL or .proto file, ask again. PDFs go stale easily, while the contract file is what the live system uses.
Step 2: With SOAP, read the envelope before the letter
SOAP is a standardized, tightly structured protocol whose messages are written in XML. According to the W3C’s SOAP 1.2 Primer, each message sits inside an envelope, the body is a mandatory part of that envelope, and errors are reported through the Fault element. The skeleton looks like this (a simplified illustration; take the namespace and operation names from the client’s WSDL):
<env:Envelope xmlns:env="(namespace for the client's SOAP version)">
<env:Body>
<GetOrder>
<OrderId>A-1024</OrderId>
</GetOrder>
</env:Body>
</env:Envelope>
In the WSDL, choose the operation with the fewest parameters that only reads data. Send an order ID that exists in the test environment so that real data comes back.
Check: the response has an envelope, and the body contains data. Then send a wrong ID on purpose to see what the Fault looks like, and record that sample on the integration card. Your error-handling code will need that exact structure later.
Step 3: With gRPC, start with unary and leave streaming for later
According to the gRPC documentation, a client can directly call a method on a server on another machine as if it were a local function. gRPC has four kinds of method. The simplest is unary: the client sends one request and gets one response back. Make this your first call.
Open the .proto file and find an rpc line where neither the request nor the response has the stream keyword. The snippet below is a hypothetical example to help you recognize one:
// simplified illustration; service and message names are hypothetical
service OrderService {
rpc GetOrder (GetOrderRequest) returns (Order); // unary: call this first
rpc WatchOrders (stream Filter) returns (stream OrderEvent); // leave for later
}
Bidirectional streaming, in which both sides send a sequence of messages over a read-write stream, is the hard part. You do not need it on day one.
From the .proto file, generate client code for your language and open a channel. In gRPC, a channel is a connection to a server at a specific host and port. Information particular to each call, such as authentication headers, travels in metadata.
Check: the unary call returns an object of the correct Order type. If it is rejected, review the authentication metadata before suspecting the code.
Step 4: With GraphQL, ask only for what you need
GraphQL is both a query language for APIs and a server-side runtime. Because the API revolves around types and fields, you decide the shape of the response in the query itself. Keep the first query small (the field names below are placeholders; take the real ones from the schema):
query {
order(id: "A-1024") {
id
status
}
}
The big advantage when exploring a client’s schema is checking before running. The type system lets tools flag a query with invalid syntax before the request reaches the server. You learn the schema by letting the tool point out your mistakes, which is much faster than reading it from start to finish.
Check: the response contains exactly the two fields you asked for, no more and no less. Then add fields one at a time as the use case requires.
Step 5: Wrap it, add a timeout, then call it done
A call that works on your laptop is not yet an integration. The client’s service may respond slowly or hang, and your code should not wait forever. gRPC lets the client set a deadline, the maximum time it is willing to wait for an RPC to complete. For SOAP and GraphQL, set an equivalent timeout in your HTTP client.
Write a function such as get_order(order_id) that hides the underlying protocol. It takes simple parameters, returns your own object and raises one consistent type of error, whether the cause is a SOAP Fault or an error returned by the gRPC client.
Below is a simplified skeleton in Python. The _call_client_system function is where you put the real SOAP, gRPC or GraphQL call from step 2, 3 or 4, and 5 seconds is only an example value:
# simplified illustration: replace _call_client_system with your real call
class IntegrationError(Exception):
pass
def get_order(order_id: str, timeout_s: float = 5.0) -> dict:
try:
raw = _call_client_system(order_id, timeout=timeout_s)
except Exception as e: # SOAP Fault, gRPC error, HTTP error, timeout...
raise IntegrationError(f"get_order({order_id}) failed: {e}") from e
return {"id": raw["id"], "status": raw["status"]}
Check: call get_order with one valid ID and one invalid ID. The first must return a compact two-field dict; the second must raise IntegrationError with a readable message instead of a page-long XML stack trace. Your team does not need to know whether XML or Protocol Buffers lie underneath.
Three mistakes that turn a day into a week
The most common mistake is starting with the hardest thing. The client mentions a “realtime event stream” and you dive into bidirectional streaming, when a unary RPC is enough to prove the connection and get data for a demo.
Next is ignoring errors. Many people test only the happy path, then meet an unfamiliar SOAP Fault on demo day that their code cannot handle. Sending one bad request on purpose on day one takes five minutes and can save an entire demo.
The last is calling without a time limit. With no deadline or timeout, one hung service takes the whole pipeline down with it, and you lose an afternoon hunting for the bug in the wrong place.
How do you put this skill on a CV?
When an FDE job description mentions “integrating with legacy systems” or “customers’ internal APIs,” do more than list “SOAP, gRPC, GraphQL” under skills.
Write a line that shows a result, such as “integrated a SOAP service via WSDL, wrapped it as a client with timeouts and Fault handling,” or link to a small repo with clients for all three protocols calling servers you set up yourself.
On site, trust does not go to the person who has memorized the SOAP 1.2 specification. It goes to the one who, before lunch on the first day, posts a line in the shared channel: “GetOrder call works, here’s the sample data.”
Was this article useful?
Thanks for the feedback!
6 sources
- Introduction to gRPC · 2024-11-12
- Core concepts, architecture and lifecycle | gRPC · 2026-05-11
- GraphQL | The API language for humans and agents
- SOAP vs. REST: What API Testers and Developers Need to Know | SmartBear Learn
- SOAP Version 1.2 Part 0: Primer (Second Edition) · 2007-04-27
- What is REST?: REST API Tutorial · 2025-04-01