Synapse

WSO2ESB: Property setting not accepting empty value

好久不见. 提交于 2019-12-12 03:39:56
问题 Actually I'm trying to get an empty value when I set a Property in a sequence in WSO2 ESB with an empty string. I have tried many things but always get the result "null" or "\"\"" instead of "" when I get the property, here is my code: <property value="""" name="arq.general.DestinationSystem" scope="default" type="STRING" xmlns:ns="http://org.apache.synapse/xsd" xmlns:ns2="http://org.apache.synapse/xsd"/> <property name="arq.general.ParentInstanceID" scope="default" type="STRING" value=""/>

WSO2 ESB : Aggregate node droppping message after aggregation

╄→尐↘猪︶ㄣ 提交于 2019-12-12 03:14:28
问题 I am implementing the Fan out -- Fan in splitter EIP inside a proxy , whereby : |-----> shoe store-(1-M)------------- productSearchRq -- |-->Rs |-----> ack clothes store-(0-1)------ Shoe store = Data service and Clothes store = Axis 2 service . So in short I implement the pattern above ; I clone the request , send it , get responses , format them using payloadFactory: <productDetails> <productID>$1</productID> <productName>$2</productName> <productSize>$3</productSize> <productColour>$4<

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>

WSO2 API Manager /services/… throw a NullPointerException

 ̄綄美尐妖づ 提交于 2019-12-11 09:57:27
问题 I have the WSO2 API Manager running on a Windows 2012 R2 server and all dashboard URL's like https://localhost:9443/store , https://localhost:9443/carbon , https://localhost:9443/publisher work fine. But when I configure and deploy (in the carbon.super tenant) the example WeatherAPI web service and try to reach it via the /services/... URL i.e.: https://localhost:9443/services/weather/1.0.0/*?q=Amsterdam I get the following error page returned: > HTTP Status 500 - > > > type Exception report

How to send a file AND other POST data with Synapse

╄→гoц情女王★ 提交于 2019-12-11 03:18:41
问题 Delphi used: 2007. Hello, I have a simple web page with two text input and one file input. Now, for the form to be sent, both the text inputs and the file input have to be filled. With Synapse, I know how to upload a file ( HttpPostFile ) and how to post data ( HttpMethod ). However, I don't know how to do both. After looking at the source code of Synapse, I guess I have to "format" my data with boundaries or something like that. I guess I should have one boundary for my input file and

Synapse Delphi HTTPS SSL GET Request

拟墨画扇 提交于 2019-12-09 06:59:54
问题 Only a GET request to a HTTP url works. If i try to request a HTTPS url then it doesn't return anything. I pretty much tried everything. Appreciate any help. Here's my code: SynHttp.Sock.CreateWithSSL(TSSLOpenSSL); SynHttp.Sock.SSLDoConnect; SynHttp.HTTPMethod('GET', 'https://www.google.com/'); Resp.LoadFromStream(SynHttp.Document); HtmlResponse := Resp.Text; SynHTTP is a THTTPSend object. 回答1: Make sure: your exe application can access ssleay32.dll and libeay32.dll - the easiest way is to

Criteria for choosing simple Apache Synapse Vs WSO2

大城市里の小女人 提交于 2019-12-08 20:46:43
问题 While evaluating various ESB's, I came across Apache Synapse & WSO2. In WSO2 it's mentioned that WSO2 completely uses Synapse and built on top of it. However I am not still clear what additional features does WSO2 offer over Synapse? (Apart from commercial support). One difference I could see is the web UI to manage proxy definitions, sequences creation etc. Are there any other features which WSO2 provides over Synapse? Also please share if there are any guidelines to choose between Synpase &

How to download faster?

会有一股神秘感。 提交于 2019-12-08 10:02:48
问题 What is the fastest way to download webpage source into a memo component? I use Indy and HttpCli components. The problem is that I have a listbox filled with more than 100 sites, my program downloads source to a memo and parses that source for mp3 files. It is something like a Google music search program; it uses Google queries to make Google search easier. I started reading about threads which lead to my question: Can I create a IdHttp instance in a thread with parsing function and tell it

Synapse: Cannot receive data from Socket

旧时模样 提交于 2019-12-08 07:51:30
问题 I am using Synapse with blocking sockets and try to simply send text to the connected client. Here comes the code: var SServer: TTCPBlockSocket; SClient: TTCPBlockSocket; implementation //Create and initialize the Sockets. procedure TForm1.FormCreate(Sender: TObject); begin SClient := TTCPBlockSocket.Create; SServer := TTCPBlockSocket.Create; SServer.Bind('127.0.0.1', '12345'); SClient.Connect('127.0.0.1', '12345'); end; //Wait for connections. procedure TForm1.FormShow(Sender: TObject);

Delphi + Synapse: How to check if I am still connected

空扰寡人 提交于 2019-12-06 01:09:54
问题 I am using TTCPBlockSocket for a TCP/IP Application . The problem is that I can't determine when the connection is lost. GetLastError returns 0 Read returns 0 But I encounter these values eaven if the application is connected so I can get it how can I be notified when the TCP/IP connection is lost. Thanks 回答1: I would say, you can use the CanRead method, passing 0 to its Timeout parameter. This function internally performs select function for the socket and returns False when an error occurs.