IBM Integration PoT Labs Home page

IBM API Connect - Creating REST Proxy based upon a WSDL

Return to main APIC lab page


Table of Contents


1. Introduction

In this lab, you will configure a SOAP WebService that is deployed to IBM App Connect to function as a REST Proxy within IBM API Connect. You will be deploying a very simple Temperature Converter WebService into IBM App Connect then expose it to IBM API Connect as a REST API.

Design diagram
Alt text

2. IBM App Connect - Deploy Temperature Converter WebService

Download the bar file from here.

Deploy the bar file.

Logon to Cloud Pak for Integration Platform Navigator, open App Connect Dashboard > Click on “Deploy Integrations” tile.

App Connect Dashboard

Select “Quick Start Integration”, and Click <Next>.

Drag & drop the bar file downloaded above as below.
Alt text

Click <Next> two times.

Name your Integration Runtime as "ace-tk-temperature-converter".

Alt text

Click <Create>.

Wait for 30seconds and refresh the page.

Make sure the Integration Runtime "ace-tk-temperature-converter" is Ready.

Click on the Integration Runtime "ace-tk-temperature-converter" tile.

Alt text

Alt text

Click on the Properties tab, and copy “SOAP HTTP URL”. This will be configured in the next section (API Creation).

Alt text


3. IBM API Connect - Create REST Proxy from the WSDL

Download the zip file that contains Temperature Converter WSDL, and XSD’s from here.

Logon to Cloud Pak for Integration, and open API Management (apim-demo).

Click on “API Studio” icon.

Alt text

Click on “New API Project > Create a new project”.

Alt text

Enter “Project name” as “student(n)-soap-project”, and “Description” as “TemperatureConverter - SOAP to REST”.

alt text

3a. Add API

Click on the project you just created.
alt text

Click on “Add API”.
alt text

Select SOAP.
alt text

Drag and drop the zip file that you downloaded above.

alt text

Enter API Name as student1-temperature-converter-rest-api, then click <Create>.
alt text

Copy the highlighted path value (Control+c). We need update this value in the two yml files highlighed below.

alt text

Notice that it’s missing part of the zip file. its a bug, will be fixed
alt text

Paste here.
alt text

Similarly, update next yml file as below.
alt text

Click on the Design view.

alt text

Click Policy Sequence, and then click assembly.

alt text

Close the Policies view.

alt text

Click on the “Invoke” policies and set the URL that you captured in the IBM App Connect section.

alt text

3b. Publish API

Click Publish.

alt text

Click <Next> in the bottom right of of the screen.

Alt text

Click <Publish> in the bottom right of of the screen.

Alt text

If Publish is successful, then click on Catalog.

Alt text

Click <Catalog settings> tab, then click on Portal.

Alt text


4. Testing REST Proxy Service

Click on the “API Products” tab.
alt text

Click on student(n)-temperature-converter-rest-api-product.
alt text

Click <Subscribe>.
alt text

Select Create new subscription, then click Request.
alt text

alt text

Click on soap-demo application.
alt text

Click on the API.
alt text

alt text

Select API Resources > /CtoF > GET, then click <Try> button.
alt text

Enter a Centigrade value, and cick <Send>.
alt text

You should get the response with the Converted Fahrenheit value as below.

alt text

Optional test: You can also try POST CtoF operation and enter below in the Body tab.

5. Summary

Congratulations, you have exposed a SOAP WebService deployed on IBM App Connect to IBM API Connect as an REST API.

Return to main APIC lab page