Forum Discussion

NHussey's avatar
NHussey
Occasional Contributor
10 years ago

Disable websockets in rest discovery internal browser?

Our application supports websockets and long polling. If the client supports websockets then it uses that, otherwise it defaults to long polling. Because SoapUI doesn't support websockets, I would like to record a test using long polling. Unfortunately, I'm stuck. I would disable websockets in firefox and use the proxy, but the app is https and that's not supported. I would use the internal browser, but it's using websockets and not recording any traffic. Is there any way to disable websockets in the internal browser like you can in firefox? Is there any other path that I'm not thinking of?

2 Replies

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

    The internal browser is a JavaFX browser. I'm not sure if websockets can be disabled in JavaFX or not.

    You can try the following to enable https with REST discovery:

    Add the certificate to the JRE cacerts file located in <SoapUI Pro install>\jre\lib\security (please back up the file original first). Add the certificate with the following keytool command below, the keytool is in the jre bin directory.

    keytool -importcert -file <your certificate> -keystore cacerts

    Then restart SoapUI and try to use REST discovery.


    Regards,
    Marcus
    SmartBear Support
  • NHussey's avatar
    NHussey
    Occasional Contributor
    That didn't work for me.

    Steps I took:
    1 - Went to web app without using the proxy
    2 - Exported certs from browser. There were 3 levels
    3 - Used keytool to import certs to cacerts keystore. Root level cert already existed. The other 2 were imported successfully
    4 - Configured browser to use localhost:8081 proxy for http and ssl (tried on firefox and chrome)
    5 - Tried to navigate to https web app.

    Result:
    Web page never loads. Eventually it times out. Chrome give the error ERR_TIMED_OUT. If I try to reload the page, I get ERR_TUNNEL_CONNECTION_FAILED.