Forum Discussion

Sachin_Sawe__Pr's avatar
Sachin_Sawe__Pr
Contributor
15 years ago

Using soap monitor to capture request/responses sent to a webservice via proxy

Hi Ole,

We have a requirement where we HAVE TO send request to an external webservice via proxy and since we HAVE TO, WE DO USE a FreeProxy to send request to this external webservice. What we want to do is setup a soap monitor in soapui BEFORE this proxy in order to capture request/responses. So that the setup shall look like

client (soapui or any other) points to => soap monitor in soapui points to => FreeProxy points to => external webservice

How can we achieve this?

Thanks,
Sachin

5 Replies

  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hello,

    Try using http tunnel for, since in global settings you can enter proxy local or external. Http tunnel should use proxy from settings to send request. Set end point to ws end point you are testing, and send request to http tunnel( "http://localhost:" ). So, in the end it should be like : soapUI -> tunnel -> (via proxy ) -> to ws server.

    Let me know does it helps,
    robert
  • Hi Robert,

    Thank you for your prompt reply. I did try setting global proxy but requests from soap monitor do not go via proxy. In fact the requests get intercepted by proxy first and then are forwarded to tunnel. I also tried double soap monitor config where I used "excludes" under global proxy settings to filter requests coming from first soap monitor so that requests from first soap monitor go directly to second soap monitor and perhaps second soap monitor would send requests to proxy and then to external endpoint but that did not work either.

    All in all anything coming out of soap monitor is not going via proxy defined in global settings.

    Any further ideas?

    Sachin
  • SmartBear_Suppo's avatar
    SmartBear_Suppo
    SmartBear Alumni (Retired)
    Hello,

    I checked again and there was some error regarding this, it is fixed now so get nightly-build ( http://www.eviware.com/nightly-builds/ ). To set up everything do like this:

    1. set a proxy in global settings, host and port and exclude localhost.
    2. set a http tunnel.
    3. send a request trough http tunnel.

    validation of request going to tunnel -> proxy -> server and back should be visible in header.

    Hope this helps, let me know
    robert