Synapse

Synapse Delphi HTTPS SSL GET Request

亡梦爱人 提交于 2019-12-03 09:32:32
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. Make sure: your exe application can access ssleay32.dll and libeay32.dll - the easiest way is to copy them into the directory of your exe. you added ssl_openssl.pas and ssl_openssl_lib.pas to your project.

WSO2 Aggregate Mediator premature/incomplete/unknown completion

谁说我不能喝 提交于 2019-12-02 06:41:18
I'm having a confusing issue with my aggregate mediator inside an out Sequence of a proxy. Configuration : A sequence implementing the iterate mediator Iterated the following message : <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <productSearchRs xmlns="SHC"> <productDetails> <Product_ID>1487326</Product_ID> <Product_Name>SECRET</Product_Name> <Product_Size>M</Product_Size> <Product_Colour>BLACK</Product_Colour> <Product_Type>SOCKS</Product_Type> <Source>SHC</Source> </productDetails> <productDetails> <Product_ID>1985211</Product_ID> <Product_Name

Pascal Delphi - Undeclared Identifier

♀尐吖头ヾ 提交于 2019-12-01 14:34:38
I'm using the Synapse library in a Delphi project to do some networking. When I try and use one of the Types that are defined in the external units, i.e: 'TTCPBlockSocket', it has the red underline and says "Undeclared Identifier 'TTCPBlockSocket'". The files are all in the correct folders and the 'uses' statement can find them and shows no errors. The strange thing is that I've had an identical setup in another project and there have been no errors in that project. As a note: I can't install/edit the software/settings, so I can't add any fixes. This is a well-known bug in Error Insight . It

Pascal Delphi - Undeclared Identifier

喜你入骨 提交于 2019-12-01 12:21:52
问题 I'm using the Synapse library in a Delphi project to do some networking. When I try and use one of the Types that are defined in the external units, i.e: 'TTCPBlockSocket', it has the red underline and says "Undeclared Identifier 'TTCPBlockSocket'". The files are all in the correct folders and the 'uses' statement can find them and shows no errors. The strange thing is that I've had an identical setup in another project and there have been no errors in that project. As a note: I can't install

Working example on Spring Mediator in WSO2 ESB 4.6.0

一笑奈何 提交于 2019-12-01 11:58:38
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. I got to work this as below, The class should extends AbstractMediator and override the mediate() method as follows, package com.test.spring.mediator.workingexampleonspringmediator; import org.apache.synapse

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

How to establish a secure connection by using Synapse?

浪尽此生 提交于 2019-11-30 18:51:50
I'm testing Synapse and want to know how can I establish a secure connection. I noticed it supports SSL, but I'm not sure whether it suits my needs. I don't have a certificate from CA. I just want to encrypt all data between my server program and client program. Sure, I can encrypt the data myself before sending out. But if SSL can encrypt the data, maybe I can just use it. From what I know, SSL is for "encryption" and "authentication". What I need is only "encryption". Is it possible with Synapse? UPDATE: Thanks for helping from daemon_x and the author of Synapse, Lukas Gebauer, I think I

How to establish a secure connection by using Synapse?

坚强是说给别人听的谎言 提交于 2019-11-30 03:02:59
问题 I'm testing Synapse and want to know how can I establish a secure connection. I noticed it supports SSL, but I'm not sure whether it suits my needs. I don't have a certificate from CA. I just want to encrypt all data between my server program and client program. Sure, I can encrypt the data myself before sending out. But if SSL can encrypt the data, maybe I can just use it. From what I know, SSL is for "encryption" and "authentication". What I need is only "encryption". Is it possible with

WSO2 ESB 4.8.1 ERROR White spaces are required between publicId and systemId

烂漫一生 提交于 2019-11-29 17:08:19
We are working with WSO2 ESB 4.8.1 with JAVA 1.7.0_55. Always, when we start the ESB and make the first request we receive this error: TID: [0] [ESB] [2015-04-22 10:51:31,067] ERROR {org.apache.synapse.transport.passthru.util.RelayUtils} - Error while building Passthrough stream {org.apache.synapse.transport.passthru.util.RelayUtils} org.apache.axiom.om.OMException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,62] Message: White spaces are required between publicId and systemId. at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:296) at org.apache

80后,天才程序员, Facebook 第一任 CTO,看看开挂的人生到底有多变态?

眉间皱痕 提交于 2019-11-28 22:14:29
鸡仔说:今天介绍一位天才程序员——亚当·德安格洛(Adam D'Angelo),他被《财富》杂志誉为“科技界最聪明的人之一”,大学去了被誉为"天才"摇篮的加州理工,毕业后成为 Facebook 的第一任 CTO,后创造全球领先问答公司 Quora。2016 年福布斯排行榜 40 岁以下最富有企业家中排名第 24 位。最可怕的是,这个身价数十亿的小伙子,是个 80 后(1984年出生),开挂的人生从来都不需要解释 竞赛获奖成为家常便饭 和很多天才一样,Adam 很早就展现了惊人的天赋和智慧。这集中体现在他参加的编程竞赛上。学编程的童鞋应该知道,在编程中,算法是作为区分程序员逻辑思维水平高低的重要指标之一。也就是说,如果你算法写得好,可以简单地等同于的你的编程思维好。而在算法中,被称为 ACM 的竞赛(全称为 ACM 国际大学生程序设计竞赛),是算法领域公认的权威竞赛。这里补充一句,毫不夸张地讲,如果你在 ACM 比赛上获得好成绩,那么便可以很轻松地通过国内 BAT 级别甚至以上的互联网公司的算法考核。更有甚者,直接拿算法竞赛题考面试者,通过就直接拿 offer。但就是这样一个含金量特别高,被很多程序员视为"噩梦“的竞赛,Adam 一路过关斩将拿到了亚军,可以想见,他的算法功底是有多强。对他来说,参加这种级别的竞赛并获得好成绩就是家常便饭 当然,有人可能要说了,他算法功底强