About this task
You can test the SOAP API by invoking the API from SOAPUI. SOAPUI is just one example
of a third-party SOAP test client.
Let's test the NumberConverter SOAP API, which was imported using a file. In this example,
with the imported SOAP API, you can convert a number to the word format.
To test the SOAP API using SOAPUI
Procedure
-
In the SOAPUI, select SOAP in the menu bar.
-
In the New SOAP Project, add the following fields:
- Project Name = Your_Project_Name
- Initial WSDL field = Value in the Documentation > Artifacts
fields in API Gateway
- Select the Create Requests field.
- Click OK.
-
Select Projects > Your_Project_Name >
NumberConversionSOAPBinding >
NumberToWords > Request1.
-
Add a number 25 in the placeholder marked by
?
-
In the Authorization tab, select the type as
Basic and provide the login credentials of the API Gateway
instance.
-
Click Run.
The SOAP API is invoked successfully and returns the status code as 200. The number is
displayed in words in the response body. You can now expose the API to the
consumers.
What to do next
For details about the further actions you can perform on the API, see All about APIs in the API Gateway
User's Guide.