DZone
Integration Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Integration Zone > Provide a REST Proxy Interface to a SOAP Web Service in Mule

Provide a REST Proxy Interface to a SOAP Web Service in Mule

This tutorial will show you how to create a REST proxy interface for a SOAP web service in a Mule flow.

Deepak Kushwaha user avatar by
Deepak Kushwaha
·
Jun. 03, 16 · Integration Zone · Tutorial
Like (2)
Save
Tweet
2.56K Views

Join the DZone community and get the full member experience.

Join For Free

Use Case: Expose ipLocationcwebservice as a REST XML-based web service
Call to an External Webservice–ipLocation.

Use this wsdl file (http://ws.cdyne.com/ip2geo/ip2geo.asmx?wsdl).

Objective: Provide a Rest proxy interface to a SOAP web service.

1.  Create a new project:

File > New > Mule Project

Image title

Image title

Enter the "Project Name" and click "Finish".

2. Drag and Drop the "HTTP Connector" to canvas from right and create a "Connector Configuration".

Image title

2.1. Click on the Green + sign shown in above picture and enter the configuration values (Host, Port).

Image title

3. Drag and Drop "Variable" in the current flow.       

3.1. Enter the XPATH  expression in the value field of the Variable property.

Image title

4. Drag and Drop "Transform Message" transformer to the flow to map the variable value to the 3rd-party service’s input.

Image title


5.  Drag and Drop the "web service consumer" Connector to the flow to consume the 3rd-party service.

6.  Click on the Green + icon shown in the above picture and enter the value of the WSDl location you are using from the 3rd-party and select other parameters accordingly (Service, Port, Address).

Image title

7. Save and Run the project.

8. Final Flow:

Image title

Web Service SOAP REST Web Protocols Interface (computing)

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Servlets Listeners Introduction and Examples
  • Federated Schema Design
  • Your Old Laptop Is Your New Database Server
  • Chopping the Monolith

Comments

Integration Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo