ข้ามไปยังเนื้อหา

SOAP, WSDL and UDDI

เนื้อหานี้ยังไม่มีในภาษาของคุณ

Module 4 of 8 in the chapter The Story of Integration: From CORBA to Today, chapter 17 of the Integration Architect course. Each module stands on its own. Previous: Objects Across the Wire · Next: REST and JSON Win, and Salesforce’s Own Doors

The question this module answers: Web services were the big thing of the early 2000s. What did SOAP, WSDL and UDDI each do, which of them lasted, and what does Salesforce still expect you to know about them?

After CORBA (module 3), there was no standard way to call a service on another system. Making a single call from A to B was very complicated. SOAP followed in CORBA’s footsteps, but made it a little easier, and in the early 2000s it became the standard for a while.

SOAP did two things differently. It sent XML, which any system could read and write. And it went over HTTP, through the ports that were already open for the web (module 2). The first version, SOAP 1.1, was published by the W3C in May 2000. SOAP 1.2 became a W3C standard in 2003, with a second edition in 2007.

A SOAP message is an envelope. On the front of the envelope, the header says who it’s going to and where it’s coming from. Inside is the body, with the data. And if something goes wrong, a fault comes back. Chapter 3 module 2 shows the envelope and its parts.

To call something like get customer, you need to know what to pass in and what you’ll get back. What’s the data type? What are the fields? How are they formatted?

SOAP’s answer was a file: the WSDL, the Web Services Description Language, first published in March 2001. Typically, the server generates the WSDL and gives it to the client. The client reads it into its own tools, and the tools generate the code to call the service. Sound familiar? It’s CORBA’s IDL and generated stubs again, in XML and over HTTP.

That’s the idea that lasted. Today we write the contract as an OpenAPI file instead of a WSDL (chapter 3 module 2), but it’s the same thing: a description of the service that a machine can read and generate code from.

If services describe themselves, how does a caller find them? That was UDDI’s job: Universal Description, Discovery and Integration. It was meant to be a phone book for web services. Companies would publish their services in a public registry, and other systems would look them up and connect on their own.

I remember the excitement about it. As I said in module 1, it seemed like it never went anywhere. The public registry, run by IBM, Microsoft and SAP, was part of a project announced in 2000. At the end of 2005, the three companies announced they were shutting it down, and publication stopped on January 12, 2006. Their reason: the registry had done its job. It proved the standard worked, and companies could now run UDDI registries of their own, with the products that supported it (UDDI Business Registry Shutdown FAQ (opens in a new tab), Microsoft, archived January 2006, checked 2026-11-20).

Why didn’t it work? Companies didn’t want to find a stranger’s service in a public list and start calling it. Integration needs a contract between two parties, an agreement on security, and someone to call when it breaks. A phone book can’t give you any of those. But the need to find what you can call didn’t go away. It came back as API catalogs inside companies, and now as the lists of tools an AI agent can call (chapters 22 and 23).

Here’s where the story meets Salesforce, and the exam. If you want to call into Salesforce over SOAP, Salesforce gives you the WSDL. In Setup, under API, you can download two of them, and you need to know the difference (About SOAP API (opens in a new tab), SOAP API Developer Guide, checked 2026-11-21).

The enterprise WSDL is strongly typed. It has your org in it: every object, every field, your customizations too. When I show it in class, I search for the custom objects I made, an apple object with a lookup to a banana object, and they’re right there in the file. That’s good, because a developer can write account.getName() and the code reads clearly. But it’s also bad. The file is tightly bound to your org, and only your org. If someone creates a new object today, the client that got the file last week can’t see it. You’d have to generate a new WSDL, send it over, and they’d have to regenerate their classes.

The partner WSDL is loosely typed. Search it for your apple object, or even for Account, and it isn’t there. Instead, you work with a generic sObject and ask it for a field by name. It’s a little harder to use, but it’s not frozen in time. Think of yourself as a Salesforce partner who wants the same code to work for any customer, in any org. That’s what it’s for, and that’s where the name comes from.

Enterprise WSDLPartner WSDL
TypingStrongly typed: your objects and fieldsLoosely typed: generic sObject
Works withYour org onlyAny org
When the org changesDownload a new WSDL, regenerate the codeNo change needed
Choose it forOne company’s own integrationA product, or code that must not go out of date

Most of us aren’t building on WSDLs anymore. But SOAP is still around, because there are still a lot of older tools that only speak SOAP, and some code that was written years ago still runs fine. Chapter 8 module 1 shows how to find out who’s still calling your org that way.

The arrows can also point the other way: Salesforce calling out to someone else’s SOAP service. Then the other system gives you its WSDL, and Salesforce generates the Apex for you.

In class I do it with a small calculator service from a Trailhead module. The steps are short:

  1. Bring in the WSDL. In Setup, under Apex Classes, choose Generate from WSDL, and pick the file.
  2. Generate the classes. Salesforce parses the WSDL and creates Apex classes for the service, including an asynchronous version.
  3. Approve the endpoint. Salesforce blocks every callout you haven’t approved. In the class demo, it’s the old-school way, a remote site setting; today you’d use a named credential (chapter 9 module 2).
  4. Call it. Create the generated class and call its method. In the demo, two plus two, and four comes back.

That’s it. You’ll probably never do it unless the other end is an older system. But know the steps, and know the limits. Apex supports only one style of WSDL, document literal wrapped. It can’t handle a WSDL with several services or bindings, or one that imports outside schemas, and a WSDL too big for the generated classes fails. Salesforce’s own SOAP API WSDL is too big to parse into Apex (SOAP Services: Defining a Class from a WSDL Document (opens in a new tab), Apex Developer Guide, checked 2026-11-21).

One more direction. Your team can build its own SOAP service inside Salesforce, the SOAP twin of the Apex REST door in chapter 8 module 5.

You write a global Apex class, and mark each method an outside system may call with the webservice keyword, as a webservice static method. Then, in Setup, under Apex Classes, open the class and click Generate WSDL. Salesforce writes the WSDL for you, and you give it to the developers of the other system, the same way you’d hand over the enterprise WSDL (Webservice Methods (opens in a new tab), Apex Developer Guide, Winter ‘27, checked 2026-11-21).

You’ll still find these in older orgs, often from before Apex REST existed. Two things to remember. Your own SOAP services aren’t part of Salesforce’s API version retirements, so nobody retires them for you (module 8). And for anything new, Salesforce’s own direction is REST: if you’re building a new door today, build it with Apex REST.

One distinction matters a lot right now. Salesforce’s SOAP API is still supported. What’s retiring is one call on it: login(), the old way a client signed in with a username and password. It’s already gone from API version 65.0 and later. From December 1, 2026, it works only for users with a special permission, and in Summer ‘27 it’s retired in the older versions too. Chapter 10 module 3 has Salesforce’s full schedule, and chapter 13 teaches what to move to: External Client Apps and OAuth.

So when you find a SOAP integration in an org, there are two different questions. Can it keep using SOAP? Usually yes. How does it sign in? If the answer is login(), it has a deadline.

The story of integration: services The story of integration, with the wire, objects and services layers, on a timeline from 1970 to 2030 with a dashed line at today. The wire and objects layers as in modules 2 and 3. Services: SOAP, from 2000, improved until its last W3C edition in 2007, and since then supported but no longer improved; WSDL, from 2001, the same since 2007; the public UDDI registry, from 2000, closed in 2006. The layers below are still empty. The legend: a blue bar for supported, amber for supported but no longer improved, red for retired or end announced. {"author": "Steve Simpson", "blueprint": "1.0.0", "builder": "concept 1.7.0", "built": "2026-11-20", "id": "DGM-INT-IS-04", "rights": "\u00a9 2026 Twinshark LLC. All rights reserved.", "template": "timeline 0.1.0", "theme": "stevetecharc 1.4.0"} The story of integration: services NETWORKS GROW UP OBJECTS SERVICES REST AND JSON EVENTS AGENTS 1970 1980 1990 2000 2010 2020 2030 today THE WIRE · MODULE 2 EDI (X12) 1979 TCP/IP 1983 NetWare (IPX/SPX) 1983 2009 HTTP 1996 IPv6 1998 TLS 1.0 1999 2021 TLS 1.2 2008 TLS 1.3 2018 OBJECTS ACROSS THE WIRE · MODULE 3 CORBA 1991 Java RMI 1997 CORBA in Java 1998 2018 Enterprise service bus 2002 SERVICES · MODULE 4 SOAP 2000 UDDI public registry 2000 2006 WSDL 2001 SALESFORCE'S OWN DOORS · MODULE 5 SALESFORCE LEGACY · MODULE 6 AGENTS · CHAPTERS 22 AND 23 supported supported, no longer improved retired, or end announced © 2026 Twinshark LLC · stevetecharc.com
Click to enlarge

Two amber bars and one short red one. SOAP and the WSDL are still everywhere, and still supported, but the standards haven’t changed since 2007. The phone book lasted six years. Salesforce’s own SOAP API gets its own bar in module 5, with Salesforce’s other doors.

Test knowledge. Know the two WSDLs: the enterprise WSDL is strongly typed and tied to one org’s objects and fields, so it must be regenerated when they change; the partner WSDL is loosely typed, works with any org, and uses generic sObjects. Know the steps to call a SOAP service from Apex: generate the classes from the WSDL, approve the endpoint (named credential or remote site setting), then create the class and call the method.

  • For each SOAP integration you find: keep it, or move it to REST, and who owns that decision.
  • How it signs in: if it’s login(), it has a date, and it moves to OAuth before then.
  • Your own Apex SOAP services: who still calls them, and whether a new caller should get an Apex REST door instead.
  • Enterprise or partner WSDL, if someone is still building on SOAP: one org’s own code, or code that must work anywhere.
  • The contract stays, whatever the format: if a partner sends a WSDL today, treat it the way you’d treat an OpenAPI file.