This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.
Samples
The WSO2 ESB comes with a set of working examples that demonstrate some of its basic features and capabilities. A set of sample clients and services are provided in addition to the sample configurations. This document provides scripts to execute available sample scenarios.
Note
The ESB configurations listed below, with each sample, is the raw source XML serialization of the sample configuration. This may be viewed graphically through the WSO2 ESB administration console after logging into the console.
For more information, see the following pages:
- ESB Samples Setup
- Message Mediation Samples
- Sample 13: Dual Channel Invocation through Synapse
- Sample 11: Full Registry-Based Configuration and Sharing a Configuration Between Multiple Instances
- Sample 1: Simple Content-Based Routing (CBR) of Messages
- Sample 0: Introduction to ESB
- Sample 3: Local Registry Entry Definitions, Reusable Endpoints and Sequences
- Sample 5: Creating SOAP Fault Messages and Changing the Direction of a Message
- Sample 10: Introduction to Dynamic Endpoints with the Registry
- Sample 12: One-Way Messaging FireAndForget through ESB
- Sample 17: Transforming / Replacing Message Content with Payload-Factory Mediator
- Sample 15: Message Enrichment through Synapse
- Sample 2: CBR with the Switch-Case Mediator Using Message Properties
- Sample 8: Introduction to Static and Dynamic Registry Resources and Using XSLT Transformations
- Sample 14: Sequences and Endpoints as Local Registry Items
- Sample 6: Manipulating SOAP Headers and Filtering Incoming and Outgoing Messages
- Sample 4: Introduction to Error Handling
- Sample 7: Introduction to Local Registry Entries and Using Schema Validation
- Sample 9: Introduction to Dynamic Sequences with the Registry
- Sample 16: Introduction to Dynamic and Static Registry Keys
- Advanced Mediation with Endpoints
- Sample 55: Session affinity load balancing between fail over endpoints
- Sample 54: Session affinity load balancing between 3 endpoints
- Sample 61: Routing a Message to a Dynamic List of Recipients
- Sample 53: Failover sending among 3 endpoints
- Sample 50: POX to SOAP conversion
- Sample 57: Dynamic load balancing between 3 nodes
- Sample 60: Routing a Message to a Static List of Recipients
- Sample 62: Routing a Message to a Dynamic List of Recipients and Aggregating Responses
- Sample 52: Sessionless Load Balancing Between 3 Endpoints
- Sample 56: WSDL endpoint
- Sample 51: MTOM and SwA optimizations and request/response correlation
- Sample 59: Weighted load balancing between 3 endpoints
- Sample 58: Static load balancing between 3 nodes
- Quality of Service Samples in Message Mediation
- Proxy Service Samples
- Sample 156: Service Integration with specifying the receiving sequence
- Sample 157: Conditional Router for Routing Messages based on HTTP URL, HTTP Headers and Query Parameters
- Sample 152: Switching Transports and Message Format from SOAP to REST POX
- Sample 151: Custom Sequences and Endpoints with Proxy Services
- Sample 153: Routing the Messages Arrived to a Proxy Service without Processing the Security Headers
- Sample 150: Introduction to Proxy Services
- Sample 154: Load Balancing with Proxy Services
- Sample 155: Dual Channel Invocation on Both Client Side and Server Side of Synapse with Proxy Services
- Quality of Service Samples in Service Mediation (proxy)
- Transports Samples and Switching Transports
- Sample 267: Switching from UDP to HTTP/S
- Sample 265: Accessing a Windows Share Using vfs Transport
- Sample 266: Switching from TCP to HTTP/S
- Sample 256: Proxy Services with the Mail Transport
- Sample 251: Switching from HTTP(S) to JMS
- Sample 268: Proxy Services with the Local Transport
- Sample 270: Transport switching from HTTP to MSMQ and MSMQ to HTTP
- Sample 254: Using the File System as Transport Medium (VFS)
- Sample 250: Introduction to Switching Transports
- Sample 257: Proxy Services with the FIX Transport
- Sample 253: Bridging from JMS to HTTP and Replying with a 202 Accepted Response
- Sample 264: Sending Two-Way Messages Using JMS transport
- Sample 260: Switch from FIX to AMQP
- Sample 258: Switching from HTTP to FIX
- Sample 262: CBR of FIX Messages
- Sample 263: Transport Switching - JMS to http/s Using JBoss Messaging(JBM)
- Sample 252: Pure Text (Binary) and POX Message Support with JMS
- Sample 259: Switch from FIX to HTTP
- Sample 255: Switching from FTP Transport Listener to Mail Transport Sender
- Sample 261: Switch between FIX Versions
- Introduction to ESB Tasks
- Advanced Mediations with Advanced Mediators
- Using Scripts in Mediation (Script Mediator)
- Database Interactions in Mediation (DBLookup / DBReport)
- Throttling Messages (Throttle Mediator)
- Extending the Mediation in Java (Class Mediator)
- Evaluating XQuery for Mediation (XQuery Mediator)
- Splitting Messages into Parts and Processing in Parallel (Iterate / Aggregate)
- Caching Responses Over Requests (Cache Mediator)
- Synchronize Web Service Invocation with Callout Mediator
- Mediating JSON Messages
- Rewriting the URL (URL Rewrite Mediator)
- Eventing (Event Mediator)
- Mediating with Spring
- Introduction to Rule Mediator
- Miscellaneous Samples
- Sample 655: Message Relay - Basics Sample
- Sample 658: Huge XML Message Processing with Smooks Mediator
- Sample 650: File Hierarchy-Based Configuration Builder
- Sample 654: Smooks Mediator
- Sample 659: Huge EDI Message Processing with Smooks Mediator
- Sample 651: Using Synapse Observers
- Sample 653: NHTTP Transport Priority Based Dispatching
- Sample 657: Distributed Transaction Management
- Sample 656: Message Relay - Builder Mediator
- Sample 652: Priority Based Message Mediation
- Store and Forward Messaging Patterns with Message Stores and Processors
- Template Samples
- REST API Management
- Mediation Library Samples
More samples can be seen in sections, URLRewrite Mediator, Throttle Mediator, DBLookup Mediator, DBReport Mediator, Class Mediator, XQuery Mediator, Rule Mediator, Callout Mediator, Script Mediator and Transaction Mediator.