Questions tagged [apache-synapse]

Apache Synapse is a lightweight and high-performance Enterprise Service Bus

Apache Synapse is a lightweight and high-performance Enterprise Service Bus (ESB).

Powered by a fast and asynchronous mediation engine, Apache Synapse provides exceptional support for , and .

In addition to XML and , Apache Synapse supports several other content interchange formats, such as plain text, binary, Hessian and JSON. The wide range of transport adapters available for Synapse, enables it to communicate over many application and transport layer protocols.

As of now, Apache Synapse supports HTTP/S, Mail (POP3, IMAP, SMTP), JMS, TCP, UDP, VFS, SMS, XMPP and FIX.

207 questions
0
votes
1 answer

How to get property value from response as JSON in Apache Synapse?

Is there a way to get value from response as JSON in Apache Synapse? Here's an example api mediator.
jmvtrinidad
  • 3,347
  • 3
  • 22
  • 42
0
votes
1 answer

Add attachment to SOAP message in Custom Mediator, WSO2 ESB

I am trying to implement a custom mediator in WSO2 ESB and what I am trying to achieve is that the mediator must take the file path as input and then add it to the SOAP message as an attachment. The mediator code I have written so far, gets the…
Amna Tariq
  • 135
  • 1
  • 9
0
votes
1 answer

Error consuming SOAP 1.1 operation send attachment using MTOM optimization

I'm trying to consume a SOAP service that receives a message with an attachment. With SoapUI I made the call the service with success, but using WSO2 Integrator I receive the follow response error from server: OSB-382000: Couldn't create SOAP…
0
votes
1 answer

WSO2 ESB 5.0.0 Datamapper error is not launching fault sequence

I'm trying to use datamapper for transforming the incoming message, the problem is, when the message is different from expected it literally ends up the execution without calling the fault sequence that I've defined for the sequence. Is there a…
Tony Montana
  • 36
  • 1
  • 4
0
votes
1 answer

WSO2 - Script Mediator XML property retrieval using getPayloadXML();

Hi I'm trying to use Script Mediator to do a SOAP -> JSON transformation getTestMethod is called This is part of the response I'm…
StO
  • 147
  • 1
  • 12
0
votes
2 answers

Xpath 2.0 functions support in WSO2 ESB

I am trying to use tokenize xpath fn in my wso2 esb proxy service. I need to split my input string based on certain condition. But I got the following error, SynapseXPath Evaluation of the XPath expression…
Naresh sivaram
  • 37
  • 1
  • 11
0
votes
2 answers

WSO2 ESB using jms failover into recipient list

I'm trying to use recipientList to send to multiple JMS endpoints. I'm using ActiveMQ as message broker. My problem is: Whether I set the URL as a one single node of ActiveMQ it works perfectly when I set a failover endpoint comma separated I just…
Tony Montana
  • 36
  • 1
  • 4
0
votes
1 answer

Combine two queries using WSO2 ESB

I've been trying to figure out how to get WSO2's ESB to make calls to two different APIs and combine their results into a single response, and running into nothing but trouble. At its most basic, I've got two backends I'm making requests to that…
Dan Hlavenka
  • 3,697
  • 8
  • 42
  • 60
0
votes
1 answer

After setting mediation in WSO2 API Manager 1.10, I have figured out null point exception and missing credential error. What I have to do?

I'm using WSO2 APIManager 1.10. I'd like to call api request using mediation like this.
Ji-eun
  • 11
  • 2
0
votes
0 answers

Error while PUT without request body: No JSON payload provided

I have a proxy service that based on HTTP Method sends the request to an application hosted by WSO2 Application Server or to a data service on WSO2 Data Services Server. Some PUT operations needs no request body, since they just change something…
Bruno Ribeiro
  • 5,956
  • 5
  • 39
  • 48
0
votes
1 answer

WSO2 ESB Can't run Groovy script stored in registry

I'm trying to execute a Groovy script that I'm storing in the WSO2 ESB Local registry. When I do that I'm getting the following error: ERROR {org.apache.synapse.mediators.bsf.ScriptMediator} - The script engine returned a NoSuchMethodException…
you207
  • 5
  • 2
0
votes
0 answers

WSO2 ESB - Payload not return on response

I'm exposed a simple Inbound Endpoint with a filter. In the first switch a try but my payload not on the response. Second switch with a fault the correct response (payload) are send in the response. How my payload can be send on request response…
paulorcf
  • 43
  • 6
0
votes
1 answer

How to get BinaryRelayBuilder working for blocking calls?

I am attempting to make a blocking call that retrieves a PDF file, but an error is thrown whenever I try to use the returned payload (including sending it). The error is "Attempted read on closed stream", and I think it's happening because the…
Louis Zelus
  • 133
  • 13
0
votes
1 answer

Obtain WSO2 API Manager synapse resource uri-template from MessageContext

Is there any way to get resource uri-template value from MessageContext to be used in custom Handler? For example, if the api synapse config is ...
rucciva
  • 157
  • 1
  • 1
  • 11
0
votes
1 answer

How to store a value in a TinyWebDB using Synapse?

I'm trying to store a value in a TinyWebDB component (AppInventor) by using the Synapse library. I managed to get a value using this code: procedure GetValue(Tag:String); var URL: string; Params: string; Response:…
TheGreenOmega
  • 123
  • 1
  • 1
  • 14