SalesforceWizard

Salesforce SOAP API interview questions

SOAP is older but far from gone, especially in banking and ERP integrations. Know the WSDL types and how Apex generates and exposes SOAP services.

0 of 10 reviewed
On this page (6 sections)Interview questionsCommon MistakesRelated SOAP API Interview QuestionsFrequently Asked Questions about SOAP API InterviewsRelated CertificationsRelated Resources

SOAP API still powers a huge number of enterprise Salesforce integrations: Mulesoft, Informatica, legacy Java/.NET stacks. Interviewers use SOAP questions to test whether you understand WSDLs, sessions, and the API limits that matter when scaling integrations.

01

What is the Salesforce SOAP API?

SOAP API is the original XML-based web service API for Salesforce. It uses WSDL contracts and is strongly typed. Still widely used in legacy enterprise integrations, especially with Java, .NET and middleware that prefer WSDL.

02

Difference between Enterprise WSDL and Partner WSDL?

Enterprise WSDL is strongly typed to your specific org's schema (regenerate when schema changes). Partner WSDL is loosely typed and works across any org: used by ISVs and tools like Informatica, MuleSoft.

03

How does SOAP API authentication work?

Call the login() method with username + password + security token, get back a sessionId and serverUrl. Use the sessionId in the SOAP header for subsequent calls. OAuth is also supported for SOAP API in newer versions.

04

What's the record limit per SOAP call?

200 records per create/update/delete call, 2000 records per query batch (with queryMore for pagination). Bulk API is preferred for large data volumes.

05

What is a security token and when is it required?

Appended to the password (password+token) when logging in from an IP not in the org's trusted IP range. Reset via Setup → Personal Information. Not required for OAuth-based logins.

06

REST vs SOAP: when do you choose SOAP?

Choose SOAP when: integrating with legacy ESBs that require WSDL, working with strongly typed languages where contracts matter, calling specific operations only available via SOAP (e.g. some Metadata API calls), or matching existing enterprise patterns.

07

What is the Metadata API?

A SOAP-based API for retrieving and deploying configuration metadata: objects, fields, layouts, Apex classes, profiles. Used by VS Code, sfdx, Workbench, and CI/CD tools to move metadata between orgs.

08

How do you handle SOAP fault responses?

Wrap calls in try/catch and inspect SoapFault: exceptionCode (INVALID_SESSION_ID, REQUEST_LIMIT_EXCEEDED, etc.) and exceptionMessage. Re-login on INVALID_SESSION_ID, back off on limits.

09

Can SOAP API be used for streaming?

No. SOAP is request/response only. For streaming use the Streaming API (CometD-based) or Platform Events. SOAP is poll-based when you need fresh data.

10

What is upsert() in SOAP API?

Insert if not exists, update if exists, based on an external Id field. Critical for syncs from external systems where the Salesforce record may or may not already exist.

Common Mistakes

Hardcoding session IDs. They expire: always handle INVALID_SESSION_ID with re-login.

Sending too many records per call. Stay under 200 or use Bulk API.

Not regenerating Enterprise WSDL. After schema changes the WSDL is stale.

Storing security tokens in code. Treat like passwords: vault them.

Frequently Asked Questions about SOAP API Interviews

Is SOAP API deprecated?

No, fully supported. New work prefers REST, but SOAP is mature and stable.

What does WSDL stand for?

Web Services Description Language: XML contract describing the service operations and types.

How do I generate a Java/.NET client?

Download the WSDL from Setup → API, run wsdl2java or wsdl.exe to generate stubs.

Are governor limits the same?

API call limits apply to both SOAP and REST identically per org.

Can I expose custom Apex via SOAP?

Yes, with the @WebService annotation on global static methods.

PD2, Integration Architect. See certification guides.

Chat on WhatsApp