 | Level: Intermediate Upul Godage (upulgodage@yahoo.com), Senior Software Engineer, WSO2
01 May 2008 Apache Synapse is a simple, lightweight, high-performance
enterprise service bus (ESB) released under the Apache License, Version 2.0 from the
Apache Software Foundation. Using Apache Synapse, you can filter, transform, route,
manipulate, and monitor SOAP, binary, XML, and plain text messages that pass through
your large-scale enterprise systems by HTTP, HTTPS, Java™ Message Service
(JMS), Simple Mail Transfer Protocol (SMTP), Post Office Protocol Version 3 (POP3),
FTP, file systems, and many other transport mediums. But for an individual
developer, what's the use of an ESB product in your day-to-day life? The simplicity
of the configuration, out-of-the-box feature set, extensible architecture, and the
minimal footprint makes it a versatile and powerful tool that you can use for a
variety of tasks. This article examines how you can use Apache Synapse to create
mock Web services. Objectives
Learn how to use Apache Synapse to create mock Web
services.
Prerequisites
This tutorial is written mainly for Web services developers, so you should have
a general familiarity with Web services concepts. Prior knowledge of Apache
Synapse is helpful. You should also have at least an elementary knowledge of XSL
Transformation (XSLT) and JavaScript code. If this is an unfamiliar area to you,
there are many resources on the Web that can provide you with the basic
information.
System requirements
Apache Synapse requires JDK 1.5 and can run in Linux®, Microsoft
Windows®, and Solaris environments. The memory and disk space requirements
are minimal, as you can easily run it on low-end systems without any issues. In this tutorial, commands and directory names are given in a Linux-compatible
format. If your operating system is different, please change the commands and
the directory names accordingly. For example, in Windows you have to use the
synapse.bat script instead of synapse.sh to start the Synapse instance.
Duration
Under 2 hours
Formats html, pdf
|  | |  |