wso2esb

Working example on Spring Mediator in WSO2 ESB 4.6.0

大兔子大兔子 提交于 2019-12-01 10:07:59
问题 Hi i am working on Spring Mediator in WSO2 ESB 4.6.0, using this and this tutorial I am getting the Error as follows: ERROR - SpringMediator Cannot look up Spring configuration conf/sample/resources/spring/springsample.xml ERROR - SpringMediatorCannot reference application context with key : conf/sample/resources/spring/springsample.xml Could you please explain me how to solve this. 回答1: I got to work this as below, The class should extends AbstractMediator and override the mediate() method

Sending Content-Type application/x-www-form-urlencoded WSO2 ESB

北慕城南 提交于 2019-12-01 08:40:49
I have been working in a service chaining that answers me with a Bearer Token using in WSO2 EMM. I made a proxy in ESB and then I passed to a new sequence that makes the next call but this one receives a Content-Type application/x-www-form-urlencoded. I have been looking for some help so that I can find anything interesting. This is my proxy <?xml version="1.0" encoding="UTF-8"?> <proxy name="TokenService" startOnLoad="true" statistics="enable" trace="enable" transports="http https" xmlns="http://ws.apache.org/ns/synapse"> <target> <inSequence> <!--Aggregate incoming responses --> <log level=

How to read query param in WSO2 ESB 4.8 or above?

余生长醉 提交于 2019-12-01 06:22:10
I have a rest end point in WSO2ESB (4.8),I need to read query parameter to set as dynamic payload as the my business ,But i failed to read it due to newer with wso2 ESB.Any help ? The bellow code may help you <api xmlns="http://ws.apache.org/ns/synapse" name="sample" context="/api/sample"> <resource methods="OPTIONS GET" uri-template="/{val1}/groups/{val2}.json?q1={v1}&q2={v2}"> <inSequence> <property name="uri.var.q1" expression="$url:q1"></property> <property name="uri.var.q2" expression="$url:q2"></property> <property name="uri.var.val1" expression="get-property('uri.var.val1')"></property>

How to read query param in WSO2 ESB 4.8 or above?

流过昼夜 提交于 2019-12-01 06:02:19
问题 I have a rest end point in WSO2ESB (4.8),I need to read query parameter to set as dynamic payload as the my business ,But i failed to read it due to newer with wso2 ESB.Any help ? 回答1: The bellow code may help you <api xmlns="http://ws.apache.org/ns/synapse" name="sample" context="/api/sample"> <resource methods="OPTIONS GET" uri-template="/{val1}/groups/{val2}.json?q1={v1}&q2={v2}"> <inSequence> <property name="uri.var.q1" expression="$url:q1"></property> <property name="uri.var.q2"

WSO2 ESB log is too big, how to set?

爱⌒轻易说出口 提交于 2019-12-01 04:59:01
问题 I do a performance test on WSO2 ESB. And I found the log is too big that can not open. The biggest file is 7.20GB. I think this is a big problem. I want to set every log file less than 20MB, and I want delete old logs automatic. How to set this? Anyone can help me? 回答1: You can configure logging in ESB_HOME/repository/conf/log4j.properties file. Add following configurations in the log4j.appender.CARBON_LOGFILE=org.apache.log4j.RollingFileAppender section. log4j.appender.CARBON_LOGFILE

Difference between grant_type=client_credentials and grant_type=password in Authentication Flow?

时光毁灭记忆、已成空白 提交于 2019-12-01 01:03:16
问题 I would like to understand the difference between grant_type=client_credentials and grant_type=password in Authentication or in OAuth2 Flow concept. I am following below sites: http://help.atavist.com/api:authentication http://apiwiki.poken.com/authentication/oauth2 I presume grant_type=password in not secure way as far as using gran_type in JavaScript development. But I still wounder can someone help to understand this concept. I also observe that grant_type=client_credentials doesn't

getPayloadJSON returning an empty object

折月煮酒 提交于 2019-11-30 23:44:50
I am doing some very simple script mediation as a test to see if I can change the payload being returned by my server. My unmediated payload comes out as: {"origin":"202.37.75.130"} Then I try doing a very simple check to see whether get and set work for payloads: <script language="js"> var older = mc.getPayloadJSON(); var newer=older; mc.setPayloadJSON(newer); </script> My result from this is: {"jsonObject":""} I have done testing that shows that setPayloadJSON() works, which means that my getPayloadJSON must be returning an empty object. Looking at the log file shows this: ERROR {org.apache

WSO2 ESB DBLookup mediator query multiple rows

*爱你&永不变心* 提交于 2019-11-30 14:03:47
As it says in the documentation of the DBLookup Mediator it only returns the first row of the query, the other results if they are, were ignored. I want to know if there is a "best way" to run a query (SELECT * FROM X) that return multiple records and then process them. Now a days we are doing that implementing axis2 services but there is another way using a combination of the mediators provided by wso2 esb to accomplished that requirement?? Thanks in advance. Santiago. Yes DBlookup mediator will not return multiple rows. You can use two alternatives. 1) Use WSO2 Data services Server to create

Configuring PROXY settings in WSO2 ESB 4.8.1

◇◆丶佛笑我妖孽 提交于 2019-11-30 09:08:50
问题 I am new to wso2.. I am facing an issue while calling an EXTERNAl SOAP Service using wso2esb proxy service.. I am using WSO2 ESB inside a corporate proxy.. I can able to call this external soap service directly using an soap client.. Is there any proxy configuration that I need to set in WSO2 ESB ? I am getting the following exception while connecting a soap service using wso2proxy service 2014-03-18 14:40:52,193 [-] [PassThroughHTTPSender] WARN ConnectCallback Connection refused or failed

wso2 esb Unsupported Media Type

烂漫一生 提交于 2019-11-30 08:51:27
问题 I would like my company to use the Wso2ESB, but I have only two days left to convince them, and the creation of Proxy does not work! I am desperate for a real help for my problem: every proxy that I create seem to produce HTTPSender Unable to sendViaPost to... (why it is unable to send it?) Transport error: 415 Error: Unsupported Media Type (is it a consequence of the fact that it could not send? or a problem in the configuration?) My fresh installation of WSO2 ESB 4.5 is not working with any