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?
A Little Easier Than CORBA
Section titled “A Little Easier Than CORBA”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.
The WSDL: A Contract a Machine Can Read
Section titled “The WSDL: A Contract a Machine Can Read”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.
UDDI: The Phone Book That Closed
Section titled “UDDI: The Phone Book That Closed”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).
Salesforce’s Two WSDLs
Section titled “Salesforce’s Two WSDLs”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 WSDL | Partner WSDL | |
|---|---|---|
| Typing | Strongly typed: your objects and fields | Loosely typed: generic sObject |
| Works with | Your org only | Any org |
| When the org changes | Download a new WSDL, regenerate the code | No change needed |
| Choose it for | One company’s own integration | A 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.
Apex From a WSDL
Section titled “Apex From a WSDL”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:
- Bring in the WSDL. In Setup, under Apex Classes, choose Generate from WSDL, and pick the file.
- Generate the classes. Salesforce parses the WSDL and creates Apex classes for the service, including an asynchronous version.
- 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).
- 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).
Your Own SOAP Door: Apex Web Services
Section titled “Your Own SOAP Door: Apex Web Services”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.
SOAP Isn’t Retiring, but login() Is
Section titled “SOAP Isn’t Retiring, but login() Is”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.
On the Timeline
Section titled “On the Timeline”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.
What an Architect Decides Here
Section titled “What an Architect Decides Here”- 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.
Explore
Section titled “Explore”- SOAP Version 1.2 (opens in a new tab), W3C (checked 2026-11-26): the standard, second edition, 2007.
- Web Services Description Language (WSDL) 1.1 (opens in a new tab), W3C Note, March 2001 (checked 2026-11-26).
- UDDI Business Registry Shutdown FAQ (opens in a new tab), Microsoft, archived January 2006 (checked 2026-11-26): why the operators closed the public registry, in their own words.
- SOAP Services: Defining a Class from a WSDL Document (opens in a new tab), Apex Developer Guide (checked 2026-11-26): what Apex can and can’t generate from a WSDL.
- Platform SOAP API login() Retirement & new Security Requirements (opens in a new tab), Salesforce Help (checked 2026-11-26, via chapter 10): the dates.
- About SOAP API (opens in a new tab), SOAP API Developer Guide (checked 2026-11-26): Salesforce’s SOAP API and its WSDLs.
- Webservice Methods (opens in a new tab), Apex Developer Guide (checked 2026-11-26): exposing your own Apex as a SOAP web service.
