wso2esb

Error in WSO2 ESB when calling service without Header element

情到浓时终转凉″ 提交于 2019-12-11 14:19:35
问题 I believe I found bug in WSO2 ESB. I defined proxy service for our customer. With security turned off I always get expected result, but when I enable security (scenario 1 - UsernameToken), then I get error "SOAP Envelope can not have children other than SOAP Header and Body". I'm able to reproduce this bug with 'echo' service. Here is request: <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:echo="http://echo.services.core.carbon.wso2.org"> <soap:Body> <echo

How to reserve property value between every task call

孤者浪人 提交于 2019-12-11 10:55:04
问题 I used WSO2 ESB schedule task to fetch data from external system, the task call my proxy service every 5 seconds. In my proxy service, I used a property name "startTime" and "endTime", it means I want to fetch data from "startTime" to "endTime". "startTime" and "endTime" should be increase 5 seconds every task call. But it seems ESB cannot store these properties(startTime and endTime) between every task call. I try to use the script to write the "startTime" : importPackage(Packages.org.apache

Can we send Multiple Mail in wso2esb in same sequence or dynamically set a mail

自作多情 提交于 2019-12-11 10:22:14
问题 i am getting data from front end i need to verify the data across database. present value is between the min value and max if it is min or max i need to send a mail to concern person which has been defined in database,in that case i don,t know what is the mail id of client i need cross check against database in future it might be change if define static.so how can i do this my proxy is <?xml version="1.0" encoding="UTF-8"?> <proxy xmlns="http://ws.apache.org/ns/synapse" name="tReadingMobile_5

Apache Synapse/WSO2 API No response

不想你离开。 提交于 2019-12-11 10:00:50
问题 I want to send a query to the database and return the result to the client using WSO2 rest api. Here is the synapse config: <api xmlns="http://ws.apache.org/ns/synapse" name="RestDBLookup" context="/dblookup"> <resource methods="POST GET" uri-template="/channel/{name}" protocol="http"> <inSequence> <dblookup> <connection> <pool> <password>pass</password> <driver>oracle.jdbc.driver.OracleDriver</driver> <url>jdbc:oracle:thin:@localhost:1521:ORCL</url> <user>user</user> </pool> </connection>

replace function with get-property in wso2esb

…衆ロ難τιáo~ 提交于 2019-12-11 09:48:28
问题 I am trying the below option and i m getting error, can anyone suggest me the solution. I have added synapse.xpath.dom.failover.enabled=true Code: trying to replace ~TOKEN~ with the property value <property name="verificationLink" expression="fn:replace($ctx:reqVerifyUrl , '~TOKEN~', get-property('verification_code'))" scope="default" type="STRING" xmlns:fn="http://www.w3.org/2005/xpath-functions" /> Error: TID: [-1234] [] [2017-02-15 00:14:19,318] ERROR {org.apache.synapse.util.xpath

WSO2 ESB mediate SOAP services

余生颓废 提交于 2019-12-11 09:38:22
问题 I am struggling to make work my message flow in the wso2 esb so I would need some help to implement a basic communication: Service1 wants to receive an integer number Service2 Generates random numbers Service1 has InSequence: log, send (to addresspoint specified). OutSequence: log, send this looks like: <proxy name="ClientAskNumber" transports="https http" startOnLoad="true" trace="disable"> <target faultSequence="fault"> <inSequence> <log level="full"> <property name="Insequence" value="***"

How can I modify the port 5672 in AM?

对着背影说爱祢 提交于 2019-12-11 07:04:18
问题 I start the AM server by running the commond wso2carbon.sh and the carbon.log prompts the 5672 was used. So I have to modify the port. Thus, which configuration file I should modify? Thanks a lot. 回答1: Here is a quick grep which will help you. (note: here the port is changed from 5672 to 5678.) bhathiya@bhathiya-x1:/data/products/am/wso2am-2.0.0/bin$ grep -r 5678 ../repository/conf/ -A 5 -B 5 ../repository/conf/api-manager.xml- <!--InitDelay>300000</InitDelay> ../repository/conf/api-manager

Enrich Json with new elements not working for me .Please guide

扶醉桌前 提交于 2019-12-11 05:36:30
问题 Enrich Json with new elements not working for me .Please guide. Input request : { "id" : "1", "make" : "NAHB" } I created wso2 flow named eg1.xml . I am trying to enrich the incoming json request with new element "name" processing xml: (eg1.xml) <?xml version="1.0" encoding="UTF-8"?> <api context="/eg1" name="eg1" xmlns="http://ws.apache.org/ns/synapse"> <resource methods="POST GET" uri-template="/hi"> <inSequence> <log level="full"/> <log level="custom"> <property expression="//jsonObject"

WSO2 ESB too many open files

▼魔方 西西 提交于 2019-12-11 05:29:37
问题 We have a problem in our installation of wso2 esb. We have only 4 proxy services configured, after one month without problems we started to have the following error: 2013-10-02 09:29:09,366 [-] [PassThroughHTTPSListener] WARN PassThroughHttpSSLListener System may be unstable: HTTPS ListeningIOReactor encountered a checked exception : Too many open files java.io.IOException: Too many open files at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method) at sun.nio.ch.ServerSocketChannelImpl

Does WSO2 ESB (4.5.0) Oauth Mediator support OAuth2.0 Bearer token?

末鹿安然 提交于 2019-12-11 05:09:39
问题 I got an "Error while validating OAuth2 request" message when I send a OAuth2.0 Bearer token to WSO2 ESB (4.5.0) Oauth Mediator. Does WSO2 ESB (4.5.0) Oauth Mediator support OAuth2.0 Bearer token ? What's the correct request for Oauth Mediator? My bearer header... conn = (HttpURLConnection)url.openConnection(); conn.setRequestProperty("Authorization", "bearer " + request.getParameter("accessToken").toString() ); conn.setRequestProperty("Content-Type","application/x-www-form-urlencoded"); 来源: