1. SOAP TO REST API PROXY
WITH MULESOFT API GATEWAY
Vince Jason Soliza
2. Pre-requisites
• Anypoint Studio
– Download it here https://www.mulesoft.com/platform/studio
– Install Anypoint Studio plugin API gateway runtime 2.2.0
• Configure and Run On-Premise API Gateway
– http://www.slideshare.net/VinceSoliza/onpremise-api-gateway-58451080
3. From SOAP to REST
This presentation will show how to proxy an
existing SOAP web service and expose it as a
RESTful web service.
4. WSDL
• Check if WSDL of the existing SOAP web service is accessible. If not then
get a copy of the WSDL file.
5. Add New Proxy API
• Login to anypoint platform.
• Click on APIs menu
• Click Add New API
• Fill up the API Details and click Add.
7. Configure Proxy API
• While in API Administration,
click configure endpoint.
• Select Endpoint with a proxy
• Change the Type to HTTP
• Write any url because we will be
replacing that later
• Un-check Configure proxy for Cloudhub?
since we’re deploying in on-premises
• Use HTTP scheme
• Enter desired port and path
• Click Save.
8. Configure Proxy API
• Download the proxy project
with the latest api gateway version
• Open Anypoint Studio and import
the downloaded project with mule deployable
archive (.zip).
• Browse the project in the package explorer
and open mule-project.xml then set the runtime
To api-gateway.
9. Configure Proxy API
• Associate the project to API Gateway
• Open proxy.xml configuration
10. Configure Proxy API
• Delete HTTP component and replace it with Web Service Consumer
• Create json file for the metadata definition that we’ll do later
11. Configure Proxy API
• Configure the web service consumer using the WSDL of the
SOAP service we want to proxy.
• Add Transform Message before
web service consumer.
12. Configure Proxy API
• Click define metadata to use dataweave graphical gui mapping.
• Map JSON request to web service request
13. Configure Proxy API
• Add Transform Message after the web service consumer
• Add the property Content-Type with value application/json
14. Run in Anypoint Studio
Note: Make sure the default api gateway port of 8081 is available.
16. Test the REST Proxy API
• Invoked the service thru REST POST method
with application/json media-type
17. Summary
• API Gateway converts SOAP to REST web service
without too much complications.
• API Gateway able to consume SOAP web
services using Web Service Consumer
component.
• DataWeave (Transform Message) is Mule’s most
powerful and versatile tool for transforming
data.
• API Gateway app is deployed in Anypoint Studio
(without using API Manager)
This template can be used as a starter file for presenting training materials in a group setting.
Sections
Sections can help to organize your slides or facilitate collaboration between multiple authors. On the Home tab under Slides, click Section, and then click Add Section.
Notes
Use the Notes pane for delivery notes or to provide additional details for the audience. You can see these notes in Presenter View during your presentation.
Keep in mind the font size (important for accessibility, visibility, videotaping, and online production)
Coordinated colors
Pay particular attention to the graphs, charts, and text boxes.
Consider that attendees will print in black and white or grayscale. Run a test print to make sure your colors work when printed in pure black and white and grayscale.
Graphics, tables, and graphs
Keep it simple: If possible, use consistent, non-distracting styles and colors.
Label all graphs and tables.
Give a brief overview of the presentation. Describe the major focus of the presentation and why it is important.
Introduce each of the major topics.
To provide a road map for the audience, you can repeat this Overview slide throughout the presentation, highlighting the particular topic you will discuss next.
Give a brief overview of the presentation. Describe the major focus of the presentation and why it is important.
Introduce each of the major topics.
To provide a road map for the audience, you can repeat this Overview slide throughout the presentation, highlighting the particular topic you will discuss next.
Give a brief overview of the presentation. Describe the major focus of the presentation and why it is important.
Introduce each of the major topics.
To provide a road map for the audience, you can repeat this Overview slide throughout the presentation, highlighting the particular topic you will discuss next.
Give a brief overview of the presentation. Describe the major focus of the presentation and why it is important.
Introduce each of the major topics.
To provide a road map for the audience, you can repeat this Overview slide throughout the presentation, highlighting the particular topic you will discuss next.
Give a brief overview of the presentation. Describe the major focus of the presentation and why it is important.
Introduce each of the major topics.
To provide a road map for the audience, you can repeat this Overview slide throughout the presentation, highlighting the particular topic you will discuss next.
Give a brief overview of the presentation. Describe the major focus of the presentation and why it is important.
Introduce each of the major topics.
To provide a road map for the audience, you can repeat this Overview slide throughout the presentation, highlighting the particular topic you will discuss next.
Give a brief overview of the presentation. Describe the major focus of the presentation and why it is important.
Introduce each of the major topics.
To provide a road map for the audience, you can repeat this Overview slide throughout the presentation, highlighting the particular topic you will discuss next.
Give a brief overview of the presentation. Describe the major focus of the presentation and why it is important.
Introduce each of the major topics.
To provide a road map for the audience, you can repeat this Overview slide throughout the presentation, highlighting the particular topic you will discuss next.
Give a brief overview of the presentation. Describe the major focus of the presentation and why it is important.
Introduce each of the major topics.
To provide a road map for the audience, you can repeat this Overview slide throughout the presentation, highlighting the particular topic you will discuss next.
Give a brief overview of the presentation. Describe the major focus of the presentation and why it is important.
Introduce each of the major topics.
To provide a road map for the audience, you can repeat this Overview slide throughout the presentation, highlighting the particular topic you will discuss next.
Give a brief overview of the presentation. Describe the major focus of the presentation and why it is important.
Introduce each of the major topics.
To provide a road map for the audience, you can repeat this Overview slide throughout the presentation, highlighting the particular topic you will discuss next.
Give a brief overview of the presentation. Describe the major focus of the presentation and why it is important.
Introduce each of the major topics.
To provide a road map for the audience, you can repeat this Overview slide throughout the presentation, highlighting the particular topic you will discuss next.
Give a brief overview of the presentation. Describe the major focus of the presentation and why it is important.
Introduce each of the major topics.
To provide a road map for the audience, you can repeat this Overview slide throughout the presentation, highlighting the particular topic you will discuss next.
Give a brief overview of the presentation. Describe the major focus of the presentation and why it is important.
Introduce each of the major topics.
To provide a road map for the audience, you can repeat this Overview slide throughout the presentation, highlighting the particular topic you will discuss next.
Give a brief overview of the presentation. Describe the major focus of the presentation and why it is important.
Introduce each of the major topics.
To provide a road map for the audience, you can repeat this Overview slide throughout the presentation, highlighting the particular topic you will discuss next.
Summarize presentation content by restating the important points from the lessons.
What do you want the audience to remember when they leave your presentation?