{"id":1734,"date":"2026-09-30T13:00:00","date_gmt":"2026-09-30T07:30:00","guid":{"rendered":"https:\/\/swapnilzambare.com\/blog\/salesforce-soap-api-wsdl\/"},"modified":"2026-11-15T11:31:44","modified_gmt":"2026-11-15T06:01:44","slug":"salesforce-soap-api-wsdl","status":"publish","type":"post","link":"https:\/\/swapnilzambare.com\/blog\/salesforce-soap-api-wsdl\/","title":{"rendered":"Salesforce SOAP API: WSDL, SOAP Callouts and Apex Web Services"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">The Salesforce SOAP API is the older, XML-based way for systems to talk to Salesforce, and many large companies still depend on it. SOAP uses a strict contract file called a WSDL, which describes every operation and data type. As a developer, you will meet SOAP in three places: other systems calling Salesforce, Apex calling SOAP services, and Apex exposing its own SOAP methods.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In this post, you will learn Enterprise and Partner WSDLs, generate Apex from a WSDL, make a SOAP callout, expose a webservice method and test it all. It builds on <a href=\"https:\/\/swapnilzambare.com\/blog\/salesforce-rest-api-postman\/\">the Salesforce REST API<\/a>, <a href=\"https:\/\/swapnilzambare.com\/blog\/apex-rest-callouts-httprequest\/\">Apex REST callouts<\/a> and <a href=\"https:\/\/swapnilzambare.com\/blog\/apex-test-class-basics-code-coverage\/\">Apex test class basics<\/a>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What is the Salesforce SOAP API?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The Salesforce SOAP API is a web service interface that exchanges XML messages, called SOAP envelopes, over HTTPS. Each operation, such as create, query or update, is defined in a WSDL file. Client tools read the WSDL and generate typed code, so calls are checked before they run.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Think of a formal government form. Every box has a fixed name and type, and the office rejects forms that do not match. REST is more like a friendly note, while SOAP is that strict form, slower to fill in but very predictable.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why the Salesforce SOAP API Matters<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">SOAP is not the first choice for new work, yet it is still everywhere. Here is why the Salesforce SOAP API matters at Bright Path Tutors.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>First, the old finance system only talks SOAP.<\/li>\n\n<li>Also, PayQuick&#8217;s refund service exposes a SOAP WSDL.<\/li>\n\n<li>Next, some ETL and middleware tools use the SOAP API for metadata and data.<\/li>\n\n<li>Interviews often ask how SOAP differs from REST.<\/li>\n\n<li>Finally, legacy Apex code may already contain webservice methods you must maintain.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">So knowing the Salesforce SOAP API keeps you useful on real, mixed projects.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How the Salesforce SOAP API Works<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Work with the Salesforce SOAP API follows a clear flow. First, you get the WSDL, either from Salesforce for inbound calls or from the other system for outbound calls. Next, a tool generates typed classes from it, such as WSDL2Apex inside Salesforce. Then the client builds a request object and calls an operation. After that, the stub wraps it in a SOAP envelope and sends XML over HTTPS. Finally, the reply XML is turned back into typed objects or a SOAP fault.<\/p>\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/salesforce-soap-api-wsdl-diagram-1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/salesforce-soap-api-wsdl-diagram-1-1024x640.png\" alt=\"Salesforce SOAP API diagram showing WSDL, generate, call, envelope and reply\" class=\"wp-image-1732\" srcset=\"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/salesforce-soap-api-wsdl-diagram-1-1024x640.png 1024w, https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/salesforce-soap-api-wsdl-diagram-1-300x188.png 300w, https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/salesforce-soap-api-wsdl-diagram-1-768x480.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">How a SOAP call travels with generated stubs.<\/figcaption><\/figure>\n\n\n<h3 class=\"wp-block-heading\">Enterprise WSDL<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The Enterprise WSDL is strongly typed for one org, with real objects like Course__c. So it is easy to use, but you must regenerate it when fields change.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Partner WSDL<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The Partner WSDL is loosely typed and works for any org. Because of this, tools that serve many customers use it.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">WSDL2Apex<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">In Setup, Apex Classes has a Generate from WSDL button. It turns an external WSDL into Apex stub classes for callouts.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Apex webservice Methods<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">A global class can expose webservice static methods. Salesforce then generates a WSDL for that class for outside callers.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">SOAP Faults<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">When a call fails, SOAP returns a fault with a code and message. In Apex, a failed callout throws a CalloutException.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Salesforce WSDL Types at a Glance<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The table below lists the main WSDL files and their uses.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>WSDL<\/th><th>Typing<\/th><th>Typical user<\/th><\/tr><\/thead><tbody><tr><td>Enterprise WSDL<\/td><td>Strong, one org<\/td><td>In-house integrations<\/td><\/tr><tr><td>Partner WSDL<\/td><td>Loose, any org<\/td><td>Vendors and ETL tools<\/td><\/tr><tr><td>Metadata WSDL<\/td><td>Metadata types<\/td><td>Deployment tools<\/td><\/tr><tr><td>Apex class WSDL<\/td><td>Your webservice methods<\/td><td>Systems calling custom Apex<\/td><\/tr><tr><td>External WSDL<\/td><td>The other system&#8217;s operations<\/td><td>WSDL2Apex callouts<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">SOAP API vs REST API<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The table below compares the two styles.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Feature<\/th><th>SOAP API<\/th><th>REST API<\/th><\/tr><\/thead><tbody><tr><td>Format<\/td><td>XML envelopes<\/td><td>JSON, also XML<\/td><\/tr><tr><td>Contract<\/td><td>WSDL, strict<\/td><td>Docs, flexible<\/td><\/tr><tr><td>Generated code<\/td><td>Yes, typed stubs<\/td><td>Usually not needed<\/td><\/tr><tr><td>Message size<\/td><td>Larger<\/td><td>Smaller<\/td><\/tr><tr><td>Best for<\/td><td>Legacy enterprise systems<\/td><td>New web and mobile apps<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">When to use which is practical. Choose REST for new integrations. Use SOAP when the other system only offers SOAP or needs a strict contract.<\/p>\n\n\n<figure class=\"wp-block-image aligncenter size-large\"><a href=\"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/salesforce-soap-api-wsdl-diagram-2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/salesforce-soap-api-wsdl-diagram-2-1024x640.png\" alt=\"Salesforce SOAP API diagram comparing the SOAP API and the REST API\" class=\"wp-image-1733\" srcset=\"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/salesforce-soap-api-wsdl-diagram-2-1024x640.png 1024w, https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/salesforce-soap-api-wsdl-diagram-2-300x188.png 300w, https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/salesforce-soap-api-wsdl-diagram-2-768x480.png 768w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/a><figcaption class=\"wp-element-caption\">SOAP API vs REST API.<\/figcaption><\/figure>\n\n\n<h2 class=\"wp-block-heading\">A Real Salesforce SOAP API Example<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Let&#8217;s use the Salesforce SOAP API features at Bright Path Tutors. Apex calls PayQuick&#8217;s SOAP refund service, and the finance system calls a custom Apex SOAP method.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Call PayQuick with Generated Stubs<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>public with sharing class RefundService {\n    public static String requestRefund(String paymentRef, Decimal amount) {\n        \/\/ Classes generated by Setup &gt; Apex Classes &gt; Generate from WSDL\n        PayQuickSoap.RefundPort port = new PayQuickSoap.RefundPort();\n        port.endpoint_x = 'callout:PayQuick_SOAP\/refunds';\n        port.timeout_x = 15000;   \/\/ milliseconds\n\n        PayQuickSoap.RefundResult result = port.createRefund(paymentRef, amount);\n        return result.status;     \/\/ for example 'ACCEPTED'\n    }\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The generated port class hides all XML work. Also, endpoint_x points at a Named Credential, so the URL and login stay out of code.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2: Expose an Apex SOAP Method<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>global with sharing class FinanceSoapService {\n    webservice static Decimal getPaidTotal(Id courseId) {\n        AggregateResult ar = [SELECT SUM(Amount__c) total FROM Payment__c\n                              WHERE Course__c = :courseId AND Status__c = 'Paid'\n                              WITH USER_MODE];\n        Decimal total = (Decimal) ar.get('total');\n        return total == null ? 0 : total;\n    }\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The class is global, and the method uses the webservice keyword. Then the Generate WSDL button on the class page gives finance a WSDL for this operation.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 3: Test the Callout with WebServiceMock<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>@IsTest\nprivate class RefundServiceTest {\n    private class RefundMock implements WebServiceMock {\n        public void doInvoke(Object stub, Object request, Map&lt;String, Object&gt; response,\n                String endpoint, String soapAction, String requestName,\n                String responseNS, String responseName, String responseType) {\n            PayQuickSoap.createRefundResponse_element r = new PayQuickSoap.createRefundResponse_element();\n            r.result = new PayQuickSoap.RefundResult();\n            r.result.status = 'ACCEPTED';\n            response.put('response_x', r);\n        }\n    }\n\n    @IsTest\n    static void refundAccepted() {\n        Test.setMock(WebServiceMock.class, new RefundMock());\n        Assert.areEqual('ACCEPTED', RefundService.requestRefund('PAY-778', 1500));\n    }\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">SOAP callouts use WebServiceMock instead of HttpCalloutMock. The mock puts a fake response element in the response map under response_x. The element names follow your generated classes.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Here is the test run result.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>RefundServiceTest.refundAccepted  Pass  (41 ms)<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Salesforce SOAP API and Authentication<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Older tools log in with the SOAP login() call and a username and password. However, Salesforce recommends OAuth for all new integrations. So send an OAuth access token as the session ID in the SOAP header instead.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Common Mistakes with the Salesforce SOAP API<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Using the Enterprise WSDL for a product sold to many orgs.<\/li>\n\n<li>Forgetting to regenerate the Enterprise WSDL after field changes.<\/li>\n\n<li>Hard-coding endpoint_x URLs instead of Named Credentials.<\/li>\n\n<li>Testing SOAP callouts with HttpCalloutMock instead of WebServiceMock.<\/li>\n\n<li>Choosing SOAP for a new integration when REST would be simpler.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Best Practices for the Salesforce SOAP API<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Prefer REST for new work, and keep SOAP for systems that need it.<\/li>\n\n<li>Use the Partner WSDL for multi-org tools.<\/li>\n\n<li>Point generated stubs at Named Credentials.<\/li>\n\n<li>Wrap generated classes in your own service class.<\/li>\n\n<li>Use OAuth tokens instead of password logins.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Practice Task<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Add a webservice method that returns the number of open enrolments for a course. Hint: use COUNT() in SOQL and regenerate the class WSDL afterwards.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Most Asked Interview Questions on the Salesforce SOAP API<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">SOAP still shows up in enterprise interviews. Here are the 22 questions asked most about the Salesforce SOAP API.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Basic Questions on the Salesforce SOAP API<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Q1: What is SOAP?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A protocol that sends structured XML messages, defined by a WSDL contract.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Q2: What is a WSDL?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">An XML file that describes a service&#8217;s operations, inputs and outputs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Q3: What is the difference between Enterprise and Partner WSDL?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Enterprise is strongly typed for one org, while Partner is loosely typed for any org.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Q4: Where do you download Salesforce WSDLs?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">In Setup, open API to generate the Enterprise, Partner and Metadata WSDLs.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Q5: What is WSDL2Apex?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The Generate from WSDL feature that creates Apex stub classes from a WSDL.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Q6: How do you expose Apex as a SOAP service?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Use a global class with webservice static methods.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Q7: Which format does SOAP use?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">XML only, wrapped in a SOAP envelope.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Code and Scenario Questions on the Salesforce SOAP API<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Q8: How do you set a timeout on a SOAP stub?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Set the stub&#8217;s timeout_x property in milliseconds.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Q9: How do you use a Named Credential with a stub?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Set endpoint_x to callout:Name plus any path.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Q10: How do you test a SOAP callout?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Implement WebServiceMock and register it with Test.setMock.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Q11: What happens if a WSDL feature is not supported by WSDL2Apex?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Generation fails, so you edit the WSDL or build the XML with HttpRequest.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Q12: How does an outside system call your webservice method?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It uses the WSDL generated from the Apex class page.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Q13: Do webservice methods respect sharing?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Yes, when the class uses with sharing and queries use user mode.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Q14: What error do you get if the SOAP service fails?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">A CalloutException that includes the SOAP fault message.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Advanced Questions on the Salesforce SOAP API<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Q15: Why is SOAP still used?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Because many enterprise systems were built on it and rely on strict contracts.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Q16: When must you regenerate the Enterprise WSDL?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">After adding or changing objects and fields the integration uses.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Q17: How do you authenticate SOAP calls without passwords?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Get an OAuth access token and send it as the session ID in the header.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Q18: What are the downsides of SOAP?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Larger messages, more setup and generated code to maintain.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Q19: Can one stub call different endpoints per org?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Yes, because each org&#8217;s Named Credential holds its own URL.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Q20: How do you keep generated classes maintainable?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Wrap them in a service class, so the rest of the code never uses them directly.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Q21: Which governor limits apply to SOAP callouts?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">The same callout limits as REST, including 100 callouts and 120 seconds per transaction.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Q22: How do you migrate a SOAP integration to REST?<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Add REST endpoints alongside SOAP, move callers one by one, then retire the SOAP methods.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Official Resources<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/developer.salesforce.com\/docs\/platform\/api\/guide\/sforce-api-quickstart-intro.html\" target=\"_blank\" rel=\"noopener noreferrer\">About SOAP API (SOAP API Developer Guide)<\/a><\/li>\n\n<li><a href=\"https:\/\/developer.salesforce.com\/docs\/platform\/apex-dev\/references\/apex-dev\/apex-callouts-wsdl2apex.html\" target=\"_blank\" rel=\"noopener noreferrer\">SOAP Services: Defining a Class from a WSDL Document (Apex Developer Guide)<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Quick Recap<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>The Salesforce SOAP API uses XML envelopes and WSDL contracts.<\/li>\n\n<li>Enterprise WSDL suits one org, and Partner WSDL suits many.<\/li>\n\n<li>WSDL2Apex creates stubs for SOAP callouts.<\/li>\n\n<li>webservice methods expose Apex as SOAP.<\/li>\n\n<li>Test SOAP callouts with WebServiceMock.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">What&#8217;s Next?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Loading thousands of records needs a different API. Next, read our guide to <a href=\"https:\/\/swapnilzambare.com\/blog\/salesforce-bulk-api-2\/\">Salesforce Bulk API 2.0<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Salesforce SOAP API is the older, XML-based way for systems to talk to Salesforce, and many large companies still depend on it. SOAP&hellip;<\/p>\n","protected":false},"author":1,"featured_media":1731,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_swapz_level":"","_swapz_series_part":0,"_swapz_hide_toc":false,"_swapz_hide_featured":false,"_swapz_description":"","footnotes":""},"categories":[246,8,96],"tags":[68,98,81],"swapz_series":[],"class_list":["post-1734","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-integration-apis","category-salesforce","category-salesforce-developer","tag-advanced","tag-apex","tag-integration"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Salesforce SOAP API: WSDL and SOAP Callouts<\/title>\n<meta name=\"description\" content=\"Salesforce SOAP API explained simply: Enterprise and Partner WSDL, WSDL2Apex callouts, webservice methods, WebServiceMock tests and 22 interview Q&amp;A.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/swapnilzambare.com\/blog\/salesforce-soap-api-wsdl\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Salesforce SOAP API: WSDL and SOAP Callouts\" \/>\n<meta property=\"og:description\" content=\"Salesforce SOAP API explained simply: Enterprise and Partner WSDL, WSDL2Apex callouts, webservice methods, WebServiceMock tests and 22 interview Q&amp;A.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/swapnilzambare.com\/blog\/salesforce-soap-api-wsdl\/\" \/>\n<meta property=\"og:site_name\" content=\"Swapnil Zambare - Blog\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-30T07:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-11-15T06:01:44+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/salesforce-soap-api-wsdl-featured.png\" \/>\n\t<meta property=\"og:image:width\" content=\"2400\" \/>\n\t<meta property=\"og:image:height\" content=\"1260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Swapnil Zambare\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Swapnil Zambare\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"8 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/salesforce-soap-api-wsdl\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/salesforce-soap-api-wsdl\\\/\"},\"author\":{\"name\":\"Swapnil Zambare\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#\\\/schema\\\/person\\\/10b09224c8bcc562716e86789427592a\"},\"headline\":\"Salesforce SOAP API: WSDL, SOAP Callouts and Apex Web Services\",\"datePublished\":\"2026-09-30T07:30:00+00:00\",\"dateModified\":\"2026-11-15T06:01:44+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/salesforce-soap-api-wsdl\\\/\"},\"wordCount\":1542,\"publisher\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/salesforce-soap-api-wsdl\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/salesforce-soap-api-wsdl-featured.png\",\"keywords\":[\"Advanced\",\"Apex\",\"Integration\"],\"articleSection\":[\"Integration and APIs\",\"Salesforce\",\"Salesforce Developer\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/salesforce-soap-api-wsdl\\\/\",\"url\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/salesforce-soap-api-wsdl\\\/\",\"name\":\"Salesforce SOAP API: WSDL and SOAP Callouts\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/salesforce-soap-api-wsdl\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/salesforce-soap-api-wsdl\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/salesforce-soap-api-wsdl-featured.png\",\"datePublished\":\"2026-09-30T07:30:00+00:00\",\"dateModified\":\"2026-11-15T06:01:44+00:00\",\"description\":\"Salesforce SOAP API explained simply: Enterprise and Partner WSDL, WSDL2Apex callouts, webservice methods, WebServiceMock tests and 22 interview Q&A.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/salesforce-soap-api-wsdl\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/salesforce-soap-api-wsdl\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/salesforce-soap-api-wsdl\\\/#primaryimage\",\"url\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/salesforce-soap-api-wsdl-featured.png\",\"contentUrl\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/11\\\/salesforce-soap-api-wsdl-featured.png\",\"width\":2400,\"height\":1260,\"caption\":\"Salesforce SOAP API featured image: title card with an integration code example\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/salesforce-soap-api-wsdl\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Salesforce SOAP API: WSDL, SOAP Callouts and Apex Web Services\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/\",\"name\":\"Swapnil Zambare - Blog\",\"description\":\"Salesforce &amp; Tech Guides\",\"publisher\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#organization\",\"name\":\"Swapnil Zambare - Blog\",\"url\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/site-icon-512.png\",\"contentUrl\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/09\\\/site-icon-512.png\",\"width\":512,\"height\":512,\"caption\":\"Swapnil Zambare - Blog\"},\"image\":{\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/theSwapnilZambare\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/#\\\/schema\\\/person\\\/10b09224c8bcc562716e86789427592a\",\"name\":\"Swapnil Zambare\",\"sameAs\":[\"https:\\\/\\\/swapnilzambare.com\\\/blog\"],\"url\":\"https:\\\/\\\/swapnilzambare.com\\\/blog\\\/author\\\/swapnil-zambare\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Salesforce SOAP API: WSDL and SOAP Callouts","description":"Salesforce SOAP API explained simply: Enterprise and Partner WSDL, WSDL2Apex callouts, webservice methods, WebServiceMock tests and 22 interview Q&A.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/swapnilzambare.com\/blog\/salesforce-soap-api-wsdl\/","og_locale":"en_US","og_type":"article","og_title":"Salesforce SOAP API: WSDL and SOAP Callouts","og_description":"Salesforce SOAP API explained simply: Enterprise and Partner WSDL, WSDL2Apex callouts, webservice methods, WebServiceMock tests and 22 interview Q&A.","og_url":"https:\/\/swapnilzambare.com\/blog\/salesforce-soap-api-wsdl\/","og_site_name":"Swapnil Zambare - Blog","article_published_time":"2026-09-30T07:30:00+00:00","article_modified_time":"2026-11-15T06:01:44+00:00","og_image":[{"width":2400,"height":1260,"url":"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/salesforce-soap-api-wsdl-featured.png","type":"image\/png"}],"author":"Swapnil Zambare","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Swapnil Zambare","Est. reading time":"8 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/swapnilzambare.com\/blog\/salesforce-soap-api-wsdl\/#article","isPartOf":{"@id":"https:\/\/swapnilzambare.com\/blog\/salesforce-soap-api-wsdl\/"},"author":{"name":"Swapnil Zambare","@id":"https:\/\/swapnilzambare.com\/blog\/#\/schema\/person\/10b09224c8bcc562716e86789427592a"},"headline":"Salesforce SOAP API: WSDL, SOAP Callouts and Apex Web Services","datePublished":"2026-09-30T07:30:00+00:00","dateModified":"2026-11-15T06:01:44+00:00","mainEntityOfPage":{"@id":"https:\/\/swapnilzambare.com\/blog\/salesforce-soap-api-wsdl\/"},"wordCount":1542,"publisher":{"@id":"https:\/\/swapnilzambare.com\/blog\/#organization"},"image":{"@id":"https:\/\/swapnilzambare.com\/blog\/salesforce-soap-api-wsdl\/#primaryimage"},"thumbnailUrl":"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/salesforce-soap-api-wsdl-featured.png","keywords":["Advanced","Apex","Integration"],"articleSection":["Integration and APIs","Salesforce","Salesforce Developer"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/swapnilzambare.com\/blog\/salesforce-soap-api-wsdl\/","url":"https:\/\/swapnilzambare.com\/blog\/salesforce-soap-api-wsdl\/","name":"Salesforce SOAP API: WSDL and SOAP Callouts","isPartOf":{"@id":"https:\/\/swapnilzambare.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/swapnilzambare.com\/blog\/salesforce-soap-api-wsdl\/#primaryimage"},"image":{"@id":"https:\/\/swapnilzambare.com\/blog\/salesforce-soap-api-wsdl\/#primaryimage"},"thumbnailUrl":"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/salesforce-soap-api-wsdl-featured.png","datePublished":"2026-09-30T07:30:00+00:00","dateModified":"2026-11-15T06:01:44+00:00","description":"Salesforce SOAP API explained simply: Enterprise and Partner WSDL, WSDL2Apex callouts, webservice methods, WebServiceMock tests and 22 interview Q&A.","breadcrumb":{"@id":"https:\/\/swapnilzambare.com\/blog\/salesforce-soap-api-wsdl\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/swapnilzambare.com\/blog\/salesforce-soap-api-wsdl\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/swapnilzambare.com\/blog\/salesforce-soap-api-wsdl\/#primaryimage","url":"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/salesforce-soap-api-wsdl-featured.png","contentUrl":"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/11\/salesforce-soap-api-wsdl-featured.png","width":2400,"height":1260,"caption":"Salesforce SOAP API featured image: title card with an integration code example"},{"@type":"BreadcrumbList","@id":"https:\/\/swapnilzambare.com\/blog\/salesforce-soap-api-wsdl\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/swapnilzambare.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Salesforce SOAP API: WSDL, SOAP Callouts and Apex Web Services"}]},{"@type":"WebSite","@id":"https:\/\/swapnilzambare.com\/blog\/#website","url":"https:\/\/swapnilzambare.com\/blog\/","name":"Swapnil Zambare - Blog","description":"Salesforce &amp; Tech Guides","publisher":{"@id":"https:\/\/swapnilzambare.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/swapnilzambare.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/swapnilzambare.com\/blog\/#organization","name":"Swapnil Zambare - Blog","url":"https:\/\/swapnilzambare.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/swapnilzambare.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/09\/site-icon-512.png","contentUrl":"https:\/\/swapnilzambare.com\/blog\/wp-content\/uploads\/2026\/09\/site-icon-512.png","width":512,"height":512,"caption":"Swapnil Zambare - Blog"},"image":{"@id":"https:\/\/swapnilzambare.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.linkedin.com\/in\/theSwapnilZambare"]},{"@type":"Person","@id":"https:\/\/swapnilzambare.com\/blog\/#\/schema\/person\/10b09224c8bcc562716e86789427592a","name":"Swapnil Zambare","sameAs":["https:\/\/swapnilzambare.com\/blog"],"url":"https:\/\/swapnilzambare.com\/blog\/author\/swapnil-zambare\/"}]}},"_links":{"self":[{"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/posts\/1734","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/comments?post=1734"}],"version-history":[{"count":1,"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/posts\/1734\/revisions"}],"predecessor-version":[{"id":2334,"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/posts\/1734\/revisions\/2334"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/media\/1731"}],"wp:attachment":[{"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/media?parent=1734"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/categories?post=1734"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/tags?post=1734"},{"taxonomy":"swapz_series","embeddable":true,"href":"https:\/\/swapnilzambare.com\/blog\/wp-json\/wp\/v2\/swapz_series?post=1734"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}