This tutorial shows you how to create an API definition by using a SOAP service Web Service Definition Language (WSDL). This API definition
simplifies creating and managing access to the SOAP service.
About this tutorial
Follow this tutorial to create an API in API
Manager by importing the WSDL for an existing SOAP
service. Both SOAP 1.1 and SOAP 1.2 standards are supported by API Connect. When invoked,
the API takes a SOAP request from the API caller and uses it to make its own request to the SOAP
service. The API then returns the response of the SOAP service. In this tutorial, the SOAP service
returns the balance of a fictional bank account for a particular user.
Before you begin
Note: The Sandbox catalog must be configured to use either a
DataPower® API Gateway, or a
DataPower Gateway (v5 compatible), or both. See
Creating and configuring Catalogs.
Creating a SOAP API
To create an API for an existing SOAP service, complete the following steps.
- Download the SOAP WSDL file AccountServicing.txt. Rename this file AccountServicing.wsdl.
- Log in to the API
Manager UI.
- Click the Develop icon.

- Click .

- Ensure that OpenAPI 2.0 is selected.
- Select From existing WSDL service (SOAP proxy). Click
Next.

- In the File Upload section, either drag and drop the
AccountServicing.wsdl file, or click to upload from your filesystem.

- The file uploads, and is parsed by API Connect. A confirmation
message is displayed. Click Next to continue.
- The AccountServicing WSDL service gets selected, click
Next.

- Leave the values unchanged in the Info section, and click
Next.

- In the Secure section, ensure that Secure using Client
ID and CORS check boxes are selected. Click
Next.

- A Summary screen is now displayed.

- Click Edit API.

- Click Validate > with Specifications. Your SOAP
API is now online.

You successfully created a SOAP API. The WSDL file provided all the information that was needed
to configure the API inputs and response.
Testing your SOAP API
To test your SOAP API, complete the following steps.
- Click the Test tab of the AccountServicing API.
- Click Target Configuration to open the Preferences
dialog box.
- Enable the Auto-publish setting and click Save
Preferences. You will see the API is now online, indicated by a green marker.

- Under Request, click Send to test the API. The API
response is displayed in the Response section.
What you did in this tutorial
In this tutorial, you completed the following activities:
- Created a SOAP API definition.
- Tested your SOAP API.