synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vijayaratha vijayasingam <>
Subject Re: Synapvise does not forward requests via proxyserver for a 'https' endpoint
Date Mon, 28 Nov 2011 06:55:51 GMT
Hi all;
Can anybody suggest a way to fix this issue?


 From: vijayaratha vijayasingam <>
To: synapse-dev <> 
Sent: Wednesday, 31 August 2011, 14:21
Subject: Synapvise does not forward requests via proxyserver for a 'https' endpoint

Hi all;

Synapse is not working when we configure 'http' proxy to talk to 'https' endpoint via a proxyserver.
At axis2.xml, transport sender configuration, i have added proxy server configuration,with
the additional two parameters..

<parameter locked="false" name="http.proxyHost"></parameter>
<parameter locked="false" name="http.proxyPort">443</parameter>           
//https port number
 <parameter name="HostnameVerifier">AllowAll</parameter>

Anyway, this configuration is not picked by synapse @  HttpCoreNIOSender class, since the
condition is like,
if (sslContext == null) {
 proxyHost =
 proxyPort =


if we remove (sslContext==null) condition then both scenarios(http/https sender) work fine..But
I'm not sure how this will affect other scenarios..

Please advice me on how this should  be fixed?

These are my configuration looks..

 <proxy name="TestProxy" transports="http" startOnLoad="true" trace="disable">
                        <address uri="https://localhost:9444/services/SimpleStockQuoteService"/>

And my axis2.xml transport sender configured as; (i added two parameters http.proxyHost, http.proxyPort
with the http/https ports of proxyserver..)

 <transportSender name="http" class="org.apache.synapse.transport.nhttp.HttpCoreNIOSender">
        <parameter name="non-blocking" locked="false">true</parameter>
            <parameter locked="false" name="http.proxyHost"></parameter>
    <parameter locked="false" name="http.proxyPort">80</parameter>
    <transportSender name="https" class="org.apache.synapse.transport.nhttp.HttpCoreNIOSSLSender">
        <parameter name="non-blocking"
        <parameter name="keystore" locked="false">
        <parameter name="truststore" locked="false">
    <parameter locked="false" name="http.proxyHost"></parameter>
    <parameter locked="false"
    <parameter name="HostnameVerifier">AllowAll</parameter>

View raw message