WSO2 is now Choreo LabsLearn more

Trusted AI Governance
Build

Create agents and AI apps with the tools and languages your teams already use.

Connect

Link agents securely to your APIs, data, models and business systems.

Run

Deploy, observe and operate agents and AI apps reliably at any scale.

Govern

Control identity, access, cost and policy for every agent in production.

Agent Management

Developer Platform

  • API Management Cloud

    Design, secure and publish APIs with governance and analytics built in.

    Sign Up Now
  • Integration Cloud

    Connect apps, data and AI agents with low-code and pro-code integration.

    Sign Up Now
  • Identity & Access Management Cloud

    Secure sign-in and access for customers, partners, workforce and agents.

    Sign Up Now
  • Agent Management Cloud

    Build, run and govern AI agents with full visibility and control.

    Sign Up Now
  • Developer Platform Cloud

    Ship cloud-native apps faster on an internal developer platform.

    Sign Up Now

Self-Hosted

Full control over your stack. Deploy directly to your own servers, bare metal, cloud, or Kubernetes environment. Your data never leaves your perimeter.

Product Downloads
Choreo Labs
AI Governance
Platform
Solutions
Resources
Article

[Blog post] how to aggregate responses of two REST endpoints and convert to JSON using WSO2 ESB

Here is a use case I came across recently. In this use case, it will receive responses from two endpoints which are rest, aggregate them as a single body, which is XML, and convert it to JSON before sending a response.

Highlights

  • Using clone mediator for cloning the message body and send it to two endpoints
  • Using aggregate mediator for aggregating the response from two endpoints
    • Enclosing the response using custom tag
  • Converting the XML response to JSON property mediator(messageType)

Proxy

  
  
 
 
 
 
 
 
 

Click here to refer to Lahiru's blog.