O'Reilly logo

Mule ESB Cookbook by Uchit Vyas, Azaz Desai, Abdul Samad, Dr. Zakir Laliwala

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Calling external web services using the SOAP component

In this recipe, you will see how to create a simple web service using Eclipse in Java; this web service will be called in Mule Studio using the SOAP component. You will see how to call external web services in Mule. You will then create a simple web service that will display the current date and time and the reverse string.

Getting ready

In this section, we will create a web service in Eclipse.

  1. Open Eclipse and enter a name for the workspace. Create a class called RequestHandler. In this class, we create two methods: one to display the current time and date and the other to generate the reverse string.
     import java.text.SimpleDateFormat; import java.util.Date; public class RequestHandler { public ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required