Add SOAP documentation from a WSDL file
Transform your WSDL files into reference documentation by integrating them into your project. Give your users the tools they need to make the most of your SOAP APIs with comprehensive reference documentation. Either add individual schema files to your project alongside your other content, or use an API catalog to showcase your SOAP APIs alongside OpenAPI and AsyncAPI APIs.
Before you begin
Make sure you have the following before you begin:
- a
redocly.yaml
file in the root of your project - a
package.json
file in the root of your project - the Redocly package for the product you use (such as
@redocly/realm
) listed as a dependency in thepackage.json
file
Redocly projects can be previewed locally without installing dependencies, but to add the SOAP plugin, you must have both Realm and the SOAP plugin installed as local dependencies.
If you see the error Theme "@redocly/portal-plugin-soap-api" not found
, then check that you have the @redocly/realm
package listed in your package.json
file.
Install the Redocly SOAP API plugin
To generate reference documentation for WSDL files, you must have the Redocly SOAP API plugin installed in your project. If you are working locally, you must install the plugin using a package manager. If you are working in Reunite, you must add the plugin as a dependency in your package.json
file.
Install in Reunite
When you work in Reunite, you do not need to have a package.json
file to build your project. However, if you need to install a plugin that is not included in the standard project, you do need a package.json
file. If you are working in Reunite, to generate SOAP reference documentation from a WSDL file, you must add a package.json
file with the Redocly SOAP API plugin listed as a dependency.
Use the following example package.json
file that includes the Redocly SOAP API plugin as a dependency, updating *
with the latest version:
{
"name": "demo project",
"version": "1.0.0",
"private": true,
"description": "demo",
"dependencies": {
"@redocly/portal-plugin-soap-api": "*"
}
}
Install using a package manager
Redocly projects can be previewed locally without installing dependencies, but to add the Redocly SOAP plugin, you must have both Realm and the SOAP plugin installed as local dependencies.
To install the Redocly SOAP plugin, use one of the following commands, depending on the package manager you are using:
npm install @redocly/portal-plugin-soap-api
Enable the plugin in redocly.yaml
After you have installed the plugin in your project, you must also enable it in your redocly.yaml
file by adding it to the plugins
object.
To enable the Redocly SOAP API plugin in your project, add the following configuration to your redocly.yaml
file at the root of your project:
plugins:
- '@redocly/portal-plugin-soap-api/plugin.js'
For more information about this plugin, see the SOAP plugin reference.
Add the WSDL file to your project
If you only have one or two WSDL files, and you do not have a sidebars.yaml
file in your project, to add SOAP API documentation to your project, place the WSDL files in your project, either at the root or in a folder. Afterward, the SOAP reference documentation is automatically added to your sidebar when you run your project.
You can use this WSDL example to test out the feature if you don't have a WSDL file to use. Copy the example to a <filename>.wsdl
file in your project.
If you have a sidebars.yaml
file in your project, you must add your WSDL file to your sidebars.yaml
file for it to be included in your sidebar navigation menu.
Use the sidebars.yaml file
If you have a sidebars.yaml
file in your project, you must add any files, including WSDL files, you want displayed in your sidebar to it. For more information on configuring a sidebars.yaml
file for your project, see Configure navigation on the sidebar.
To add a WSDL file to your project with a sidebars.yaml
file, add the page
and label
keys with the corresponding values for the WSDL file to your sidebars.yaml
file, as in the following example:
- page: apis/sample-api.wsdl
label: Sample API
If you have multiple API descriptions, you can group them to better organize your sidebar navigation menu.
Use the group
key for multiple descriptions
If you have multiple WSDL files, you can use a group
key for each so that the different endpoints are only revealed when selected.
To add multiple WSDL files using group
keys, update your sidebars.yaml
file as in the following example:
- group: Sample product 1 API
items:
- page: apis/sample-api-1.wsdl
label: Sample product 1 API
- group: Sample product 2 API
items:
- page: apis/sample-product-2.wsdl
label: Sample product 2 API
Related how-tos
- Organize multiple API descriptions by Adding a catalog.
- Help users find your content by Configuring navigation in the sidebar.
Resources
- For more detailed information about the plugin see the SOAP plugin reference documentation.
- See the Replay the API explorer concept doc to learn more about making your API reference docs interactive.