Forum Discussion
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
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_anderson9 years agoValued 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
- 8589 years agoOccasional Contributor
Hi
yes I can acces this Webservice via browser and via postman.
I think this WebService requires a client SSL certificate. I already added the certificate to my Java keystore but now I'm not pretty sure I configured correctly in SoapUI(by the way, I'm using SoapUI5.0)... Need some help here :)
Otherwise I think it also requires TLSv1.2 and SNI. My question: How to set javaOpts?
Thank you very much.
858- rupert_anderson9 years agoValued Contributor
Hi 858,
Ok, thats good if you can access the service via the browser and postman.
Where you say that you think your service needs a client SSL certificate, you would have had to import one before viewing in a browser or postman would work. A missing client SSL certificate might lead to error messages like 'HTTP Error 403 Forbidden: Client certificate required' etc
It could well be that TLS1.2 is required - please see related posts for that e.g.
https://community.smartbear.com/t5/SoapUI-Open-Source/How-to-enable-TLSv1-2-for-Testrunner/m-p/126044/highlight/true#M21630
https://community.smartbear.com/t5/SoapUI-Open-Source/How-to-enable-TLS-1-2-in-SoapUI/td-p/96239Regards,
Rupert
Related Content
- 12 months ago
- 11 months ago
- 5 years ago
- 2 years agoAnonymous
Recent Discussions
- 15 years ago