Forum Discussion

gherr's avatar
gherr
Occasional Contributor
15 years ago

HttpMonitor Tunnel mode not working

In version 3.6.1 HttpMonitor does not work when tunnel mode is selected. Regardless of the setting in the dialog, the top right label in http monitor always shows "HTTP Proxy" and it operates in proxy mode only.

After a quick look at the code, it seems that the problem is caused by the following line in file SoapMonitor.java:

public void start()
{
int localPort = getLocalPort();
// monitorEngine = new TcpMonMonitorEngine();

monitorEngine = new SoapMonitorEngineImpl();
( ( SoapMonitorEngineImpl )monitorEngine ).setSslEndpoint( null ); // <===== PROBLEM
monitorEngine.start( this, localPort );


Instead of the ssl endpoint from the dialog, null is passed to SoapMonitorEngine causing it to switch to proxy mode.

After changing the call to

( ( SoapMonitorEngineImpl )monitorEngine ).setSslEndpoint( sslEndpoint );

SoapMonitor works as expected in tunnel mode.

I hope, this fix will be included with the next release.

Thanks.

Gabor
  • Hi Gabor,

    this should actually be fixed in the current nightly build, can you give that a try?

    regards!

    /Ole
    eviware.com
  • gherr's avatar
    gherr
    Occasional Contributor
    Hi Ole,

    I tried it with soapui-3.6.2-SNAPSHOT-win32-standalone-bin.zip from 12-Dec-2010 02:35, but the tunnel mode still cannot be switched on. The window is showing "HTTP Proxy".

    Did I fethed the right version to test?

    Regards.

    Gabor