synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vijayaratha vijayasingam <vijayara...@yahoo.co.uk>
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?

Thanks
-Ratha



________________________________
 From: vijayaratha vijayasingam <vijayaratha@yahoo.co.uk>
To: synapse-dev <dev@synapse.apache.org> 
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">10.100.1.162</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;
 <proxy name="TestProxy" transports="http" startOnLoad="true" trace="disable">
        <target>
            <inSequence>
                <send>
                   
 <endpoint>
                        <address uri="https://localhost:9444/services/SimpleStockQuoteService"/>
                    </endpoint>
                </send>
            </inSequence>
            <outSequence>
                <send/>
            </outSequence>
        </target>
   
 </proxy>

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">10.100.1.162</parameter>
    <parameter locked="false" name="http.proxyPort">80</parameter>
    </transportSender>
    <transportSender name="https" class="org.apache.synapse.transport.nhttp.HttpCoreNIOSSLSender">
        <parameter name="non-blocking"
 locked="false">true</parameter>
        <parameter name="keystore" locked="false">
            <KeyStore>
                <Location>repository/resources/security/wso2carbon.jks</Location>
                <Type>JKS</Type>
                <Password>wso2carbon</Password>
                <KeyPassword>wso2carbon</KeyPassword>
            </KeyStore>
       
 </parameter>
        <parameter name="truststore" locked="false">
            <TrustStore>
                <Location>repository/resources/security/client-truststore.jks</Location>
                <Type>JKS</Type>
                <Password>wso2carbon</Password>
            </TrustStore>
        </parameter>
    <parameter locked="false" name="http.proxyHost">10.100.1.162</parameter>
    <parameter locked="false"
 name="http.proxyPort">443</parameter>
    <parameter name="HostnameVerifier">AllowAll</parameter>
     </transportSender>

Thanks
-Ratha
Mime
View raw message