wso2

WSO2 ESB DBLookup mediator query multiple rows

僤鯓⒐⒋嵵緔 提交于 2019-12-18 16:49:15
问题 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. 回答1: Yes DBlookup

WSO2 ESB DBLookup mediator query multiple rows

橙三吉。 提交于 2019-12-18 16:49:08
问题 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. 回答1: Yes DBlookup

Add header with username into request to backend in wso2 apimanager

流过昼夜 提交于 2019-12-18 05:20:10
问题 I have apimanger v1.5.0. It authorize request by access_token and forward to backend. Backend need enduser name for processing request. I do not want add JWT-headers to request because that insecure. Apimanager can add optional headers to request, if add to file repository/deployment/server/synapse-configs/default/api/admin--common_v1.0.1.xml in section <outSequence><header> some data for example uri.var.accessToken . But I dont know name of variable with enduser name. Does somebody know? 回答1

WSO2 IS 添加新的证书域名

青春壹個敷衍的年華 提交于 2019-12-18 03:05:38
在使用WSO2 IS这个软件时,如果你把这个这软部署在其他服务器而不是本地的话,再调用其服务时会出现以下错误。 Certificate for <WSO2_IP> doesn't match common name of the certificate subject: localhost 意思时,wso2的证书只支持localhost则个域名,不支持那个IP。 那么要做的,就是把这个IP也加入进去了。 1.进入WSO2 IS的目录 WSO2IS_HOME\repository\resources\security 会看到wso2carbon.jks这个文件,这是它默认的密钥库。 在本目录打开cmd,输入以下命令: keytool -genkey -alias wso2carbon2 -keyalg RSA -keysize 2048 -keystore wso2carbon.jks -dname "CN=192.168.3.235,OU=ZDYS,O=ZDYS,L=HZ,S=ZJ,C=CN"-storepass wso2carbon -keypass wso2carbon 如此,就把一个别名为wso2carbon2的密钥加入了默认密钥库,其中的CN,就是域名,其他的都是什么组织名,地名什么的,无所谓。 2.进入WSO2 IS的目录 WSO2IS_HOME\repository

Multipart form data file upload using WSO2 API manager?

狂风中的少年 提交于 2019-12-17 19:56:18
问题 I have rest service to upload files and it is working fine.Now I created API in API manager and also given the same file upload service as the production endpoint. But now I am getting an error in my backed server while uploading the file using API manager endpoint. 回答1: I got the solution,Need to enable Binary Relay builders in axis2.xml file to use the multipart/form-data message formatting and also ensure that there is no custom header with request to handle multipart data. <messageBuilder

wso2 am 1.10.0 API Store: “Error occurred while executing the action generateApplicationKey” with “ Invalid credentials provided.”

非 Y 不嫁゛ 提交于 2019-12-17 17:28:05
问题 Product: WSO2 AM 1.10.0 DB: MSSQL Security: SAML2 integrated with PingIdentity OS: Linux When I tried to create or generate keys from "/store/site/pages/subscriptions.jag" page, UI gave me: Error occurred while executing the action generateApplicationKey Here is what's in the log: Summary of the errors: Error while obtaining the application access token for the application:safsa org.wso2.carbon.apimgt.api.APIManagementException: Error occurred while Creating Keys. at org.wso2.carbon.apimgt

WSO2 ESB : DYNAMICALLY CHANGE ENDPOINT ADDRESS

不想你离开。 提交于 2019-12-17 16:58:13
问题 how can i set endpoint address dynamically i set endpoint address in to a property in run time and need to replace URI of endpoint address with it's value. how can i set URI value of address with this value? 回答1: You can create your endpoint like <endpoint xmlns="http://ws.apache.org/ns/synapse" name="MyEndpoint"> <http uri-template="{uri.var.full}?f={uri.var.f}{+uri.var.extra}" method="put"> </http> </endpoint> Then before calling the endpoint 'MyEndpoint' set the properties .. the

how to apply patch files in wso2 carbon

元气小坏坏 提交于 2019-12-17 11:44:09
问题 Can someone please run through the steps that you need to follow to apply .patch files onto WSO2 ESB v4.0.3? I've tried the following: Upload .patch file to repository/components/patches and carbon_home/lib/patches Run wso2server.sh start -DapplyPatches This command creates a dir called patch000 in the components/patches directory and fills it with plugins. The patch I want to apply is https://issues.apache.org/jira/browse/TRANSPORTS-51 Many thanks 回答1: You need to apply .patch file to the

WSO2 API Manager issues with solr

痴心易碎 提交于 2019-12-17 10:01:23
问题 I have setup a new setup of WSO2 API Manager integrated with WSO2 Identity Server. When starting the WSO2 API Manager I start getting the following error: SolrIndexWriter was not closed prior to finalize(), indicates a bug -- POSSIBLE RESOURCE LEAK!!! {org.apache.solr.update.SolrIndexWriter} TID: [-1] [] [2017-03-07 10:38:31,745] ERROR {org.apache.solr.update.SolrIndexWriter} - Error closing IndexWriter {org.apache.solr.update.SolrIndexWriter} java.lang.NullPointerException at org.apache

How to build WSO2 Identity Server

坚强是说给别人听的谎言 提交于 2019-12-14 04:23:09
问题 how to access to svn and build Identy server from sources? The page http://docs.wso2.org/display/identity/Building+WSO2+Identity+Server+from+source is valid also for 3.2.3? 回答1: Installing Identity Server on Linux from Source Distribution [1] Guide. When you extract the wso2is-3.2.3-src distribution execute mvn clean install from the root level OR if you need to build only 3.2.3 version go inside the /wso2is-3.2.0-src/patch-releases/ folder. There you will find separate directories for 3.2.1,