Mule web services - simple consumer

Description

Last update, 23 August 2008

This example shows how to consume (or invoke) a web service with the WSDL-CXF transport.

Mule configuration

Source and binary

Download as binary + sources here (Java 6 compiled)

Download as Eclipse project here

Get the example running

To get this example to run first download the binary and copy this file to the lib/user directory in your Mule distribution. Then execute the following steps:

Windows

  • Open a command prompt and go to your Mule distribution directory
  • Set the MULE_HOME environment variable with: set MULE_HOME=.
  • Start the hello world example with: bin\mule.bat -config simplewsconsumer-config.xml
  • Type the stock name and see the response appearing
  • Unix/Linux

  • Open a command console and go to your Mule distribution directory
  • Set the MULE_HOME environment variable with: export MULE_HOME=.
  • Start the hello world example with: bin/mule.sh -config simplewsconsumer-config.xml
  • Type your stock name and see the response appearing