Forum Discussion

858's avatar
858
Occasional Contributor
9 years ago

Hello Community, are RestServices with SSL in aktual SoapUI Version supported?

If not, I'm getting a licence for SoapUI NG Pro Version, are the RestServices with SSL supported in aktual SoapUI NG Pro Version?

what do you mean, is this exeption because of SSL or something else...
Hier the error log:

2016-10-06 12:51:08,995 ERROR [WsdlSubmit] Exception in request: java.net.SocketException: Connection reset
2016-10-06 12:51:08,996 ERROR [errorlog] java.net.SocketException: Connection reset
java.net.SocketException: Connection reset
	at java.net.SocketInputStream.read(Unknown Source)
	at java.net.SocketInputStream.read(Unknown Source)
	at sun.security.ssl.InputRecord.readFully(Unknown Source)
	at sun.security.ssl.InputRecord.read(Unknown Source)
	at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
	at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
	at sun.security.ssl.SSLSocketImpl.writeRecord(Unknown Source)
	at sun.security.ssl.AppOutputStream.write(Unknown Source)
	at org.apache.http.impl.io.AbstractSessionOutputBuffer.flushBuffer(AbstractSessionOutputBuffer.java:131)
	at org.apache.http.impl.io.AbstractSessionOutputBuffer.flush(AbstractSessionOutputBuffer.java:138)
	at org.apache.http.impl.conn.LoggingSessionOutputBuffer.flush(LoggingSessionOutputBuffer.java:95)
	at org.apache.http.impl.AbstractHttpClientConnection.doFlush(AbstractHttpClientConnection.java:270)
	at org.apache.http.impl.AbstractHttpClientConnection.flush(AbstractHttpClientConnection.java:275)
	at org.apache.http.impl.conn.AbstractClientConnAdapter.flush(AbstractClientConnAdapter.java:197)
	at org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:258)
	at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$SoapUIHttpRequestExecutor.doSendRequest(HttpClientSupport.java:119)
	at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123)
	at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:633)
	at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:454)
	at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
	at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
	at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$Helper.execute(HttpClientSupport.java:233)
	at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport.execute(HttpClientSupport.java:323)
	at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.submitRequest(HttpClientRequestTransport.java:290)
	at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:220)
	at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:119)
	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

thanks in advance
858

 

  • rupert_anderson's avatar
    rupert_anderson
    Valued Contributor

    Hi,

     

    I would say that REST services with SSL in SoapUI O/S definitely are supported.

     

    Is there anything specific that you can share about the service you are trying to call?

     

    Does it require a client SSL certificate? These can be added to java keystore files and referenced under preferences > SSL Settings.

     

    Does it require TLS1.2 or any specific version? This can be set as a Java Opt, there are many posts on this.

     

    Regards,

    Rupert 

    • 858's avatar
      858
      Occasional Contributor

      Good Morning Rupert

      thank you very much for your answer.

      I was trying to make a simple request, BuilVersion. But I'm getting "error getting Response; Java.net.SocketException: Connection reset.
      Is this error because of SSL or maybe SNI?

      Hier ist the error log:

      2016-10-06 12:51:08,995 ERROR [WsdlSubmit] Exception in request: java.net.SocketException: Connection reset
      2016-10-06 12:51:08,996 ERROR [errorlog] java.net.SocketException: Connection reset
      java.net.SocketException: Connection reset
      	at java.net.SocketInputStream.read(Unknown Source)
      	at java.net.SocketInputStream.read(Unknown Source)
      	at sun.security.ssl.InputRecord.readFully(Unknown Source)
      	at sun.security.ssl.InputRecord.read(Unknown Source)
      	at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
      	at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
      	at sun.security.ssl.SSLSocketImpl.writeRecord(Unknown Source)
      	at sun.security.ssl.AppOutputStream.write(Unknown Source)
      	at org.apache.http.impl.io.AbstractSessionOutputBuffer.flushBuffer(AbstractSessionOutputBuffer.java:131)
      	at org.apache.http.impl.io.AbstractSessionOutputBuffer.flush(AbstractSessionOutputBuffer.java:138)
      	at org.apache.http.impl.conn.LoggingSessionOutputBuffer.flush(LoggingSessionOutputBuffer.java:95)
      	at org.apache.http.impl.AbstractHttpClientConnection.doFlush(AbstractHttpClientConnection.java:270)
      	at org.apache.http.impl.AbstractHttpClientConnection.flush(AbstractHttpClientConnection.java:275)
      	at org.apache.http.impl.conn.AbstractClientConnAdapter.flush(AbstractClientConnAdapter.java:197)
      	at org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:258)
      	at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$SoapUIHttpRequestExecutor.doSendRequest(HttpClientSupport.java:119)
      	at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123)
      	at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:633)
      	at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:454)
      	at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:820)
      	at org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:754)
      	at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport$Helper.execute(HttpClientSupport.java:233)
      	at com.eviware.soapui.impl.wsdl.support.http.HttpClientSupport.execute(HttpClientSupport.java:323)
      	at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.submitRequest(HttpClientRequestTransport.java:290)
      	at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:220)
      	at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:119)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
      	at java.util.concurrent.FutureTask.run(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      	at java.lang.Thread.run(Unknown Source)



      By the way, I`m new in SoapUI...

       

      • rupert_anderson's avatar
        rupert_anderson
        Valued Contributor

        Hi,

         

        No problem about being new to SoapUI.

         

        I take it that you can access this web service fine via other means e.g. via a browser/cURL? 

         

        Is there anything you can share about the service to make it easier to guess at could be wrong? That connection reset by peer is a relatively common connection issue, that I think amounts to the service refusing the connection, possibly due to the protocol / certificate. However it is not a 'SSL handshake' type exception.

         

        Regards,

        Rupert