Contributions
Unable to trigger request with https url. Getting protocol version error. From soapui on linux.
Hello Community, Any idea on below error ? 06:42:24,709 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: CONNECT api-tst-q22.it.com:23456 HTTP/1.1 06:42:24,808 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Receiving response: HTTP/1.1 200 Connected 06:42:24,809 DEBUG [HttpClientSupport$SoapUIHttpClient] Tunnel to target created. 06:42:25,071 DEBUG [HttpClientSupport$SoapUIHttpClient] Attempt 1 to execute request 06:42:25,071 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: GET /restservices/gti-gateway/v1/customerSummary/nodes?name=SFDCMIS232711063944&searchType=customer&start=1&end=400&fuzzyIndicator=false&segment=CUST%2CWHOLESALE%2CGOV HTTP/1.1 06:42:25,149 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] I/O error closing connection javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: Received fatal alert: protocol_version at sun.security.ssl.SSLSocketImpl.checkEOF(Unknown Source) at sun.security.ssl.SSLSocketImpl.checkWrite(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) My SoapUI-5.2.1.vmoptions is below: -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -Xms128m -Xmx1000m -Dsoapui.properties=soapui.properties -Dsoapui.home=/opt/app/cgw/soapUI/bin -Dsoapui.ext.libraries=/opt/app/cgw/soapUI/bin/ext -Dsoapui.ext.listeners=/opt/app/cgw/soapUI/bin/listeners -Dsoapui.ext.actions=/opt/app/cgw/soapUI/bin/actions -Dwsi.dir=/opt/app/cgw/soapUI/wsi-test-tools -Djava.library.path=/opt/app/cgw/soapUI/bin -Djava.util.Arrays.useLegacyMergeSort=true -splash:SoapUI-Spashscreen.png -Dsoapui.https.protocols=SSLv3,TLSv1.2 -Dsoapui.https.ciphers=TLS_RSA_WITH_AES_256_CBC_SHA256 -Dsun.security.ssl.allowUnsafeRenegotiation=true -Djavax.net.debug=ssl:verbose101Views0likes0CommentsPlease help with SSL Handshake exception
Hello, I am trying to trigger a test case in soapUI 5.2.1 from command Linux , with https url and getting handshake exception. Please help if anyone aware of how to fix. Same test works from UI but failing in linux command line. 03:52:12,810 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: CONNECT env.test.gcp.com:443 HTTP/1.1 03:52:12,839 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Receiving response: HTTP/1.1 200 Connected 03:52:12,840 DEBUG [HttpClientSupport$SoapUIHttpClient] Tunnel to target created. 03:52:13,115 DEBUG [HttpClientSupport$SoapUIHttpClient] Attempt 1 to execute request 03:52:13,115 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: POST /env/bcmai/restservices/gcw/v1/mycontract/clientcontracts/ HTTP/1.1 03:52:22,839 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] I/O error closing connection javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLHandshakeException: Remote host closed connection during handshake ============================================================= I have below options in SoapUI-5.2.1.vmoptions -Dsoapui.https.protocols=SSLv3,TLSv1.2 -Dsoapui.https.ciphers=TLS_RSA_WITH_AES_256_CBC_SHA256 -Dsun.security.ssl.allowUnsafeRenegotiation=true -Djavax.net.debug=ssl:verbose From groovy too tried enabling proxy below before running api, which didnt help. import com.eviware.soapui.impl.wsdl.support.http.ProxyUtils ProxyUtils.setProxyEnabled(true)222Views0likes0CommentsRe: How to secure mock services on soapui installed on linux machine ?
Thanks a lot for your reply. I did these changes, but its not working. In linux, settings.xml is written directly to memory, so i copied the file from local and used on linux machine with -s option. Still its not working with https. If i give enablesslmock as Y, then i get error saying service already in use.295Views0likes0CommentsHow to secure mock services on soapui installed on linux machine ?
Hello, We have soapui installed on linux machine. Currently we use http url which is working. We need to secure to make it https url. with this link https://www.soapui.org/docs/soap-mocking/securing-mockservices-with-ssl/ I can able to do on UI, local machine. However how can I secure on soapui installed on linux server without gui ? As of now I was able to generate soapui.cer and mock.keystore on linux machine , but not sure on how to proceed next . Any help would be appreciated please.324Views0likes2CommentsRe: How to get resource path in groovy soapui open source?
Himanshu, Thanks, But I am not able to get the resource path itself in first attempt. Any code snippet available ? The one i am using in the groovy I shared, i am getting it as null. Any code snippet you have handy to get it ?2KViews0likes1CommentRe: How to get resource path in groovy soapui open source?
Himanshu, In my test case, i have Groovy script which i mentioned above followed by my rest request . In request, file name that need to be attached is a part of resource path like below. /drservice/JPR/Ref/JW_20200910_000000.dat where JW_20200910_000000.dat is my file name. There are many such files in my input folder which should be passed to groovy and then to resource path dynamically so that request can be submitted. I need help on getting the resource path and setting file there and submit request.2KViews0likes3CommentsHow to get resource path in groovy soapui open source?
import groovy.xml.MarkupBuilder import org.custommonkey.xmlunit.* import java.util.Random import java.security.MessageDigest import java.nio.file.* import java.text.SimpleDateFormat /*def date = new Date() trnsID1 = new SimpleDateFormat("yyyymmdd") trnsID = new SimpleDateFormat("ddMMhhss") trnsID2 = new SimpleDateFormat("MMhhss") def fileNM = 'JWCC_'+trnsID1.format(date)+'_DataUsage_'+trnsID.format(date)+'_'+trnsID2.format(date)+'_001.dat' log.info('FileName is ' +fileNM) */ String uri = new String(context.getProperty("requestUri").toString()) log.info ('uri is ' +uri) //log.info submit.request.getPath() //submit.request.setPath("/product/api/v4.0/foo") //log.info submit.request.getPath() def groovyUtils = new com.eviware.soapui.support.GroovyUtils(context) def projectPath = groovyUtils.projectPath log.info projectPath def project = testRunner.testCase.testSuite.project log.info "Project: " + project.name def myTestSuite = testRunner.testCase.testSuite; log.info "TestSuite: " + myTestSuite.name def testCase = testRunner.testCase log.info "TestCase: " + testCase.name def testStepUploadDataAfterCheck = testCase.getTestStepByName("Request 1") def request= testStepUploadDataAfterCheck.testRequest log.info "TestStep: " + testStepUploadDataAfterCheck.name // clear existing attachments for( a in request.attachments ) { request.removeAttachment( a ) } //FileNamePath def fileNamePath = testCase.getTestStepAt(testRunner.testCase.getTestStepIndexByName("Properties1")).getProperty("FileNamePath") //FileName def fileName = testCase.getTestStepAt(testRunner.testCase.getTestStepIndexByName("Properties1")).getProperty("FileName") // get file to attach log.info "file to attach: " + fileNamePath.getValue() log.info (fileName) def file = new File(fileNamePath.getValue() ) if ( file == null) { log.error "bad filename" } else { // attach and set properties def attachment = request.attachFile( file, true ) attachment.contentType = "application/octet-stream" //attachment.setPart(fileName.getValue()) //def holder2 = groovyUtils.getXmlHolder( "Request 1#Request" ) // Get Request body //holder2.setNodeValue( "//upl:UploadDataAfterCheckRequest/uploadedData","cid:"+fileName.getValue()); //Set "link" to attachment in request body //holder2.updateProperty() //and update //log.info (fileName) }2.1KViews0likes5CommentsNeed help on rest service mocking based on input value.
Hi Team, I have this rest URI : http://aporamam:8089/restservices/myidgenerate/v1/myids/getmyidData/1929 here 1929 is the userid within resource path. user id can change. I need to mock the rest response, in such a way that my mock response should work with any user id. I will be saving my mock response in a C:\users\mockpath\ directory. response will be saved in {userid}.json in this directory. for example C:\users\mockpath\1929.json, C:\users\mockpath\1930.json etc. Please help to mock this. As of now i am able to mock with one id only and not like for different input to give back different mock responses.497Views0likes0CommentsGetting error while connecting to MySql db via open source soapUI JDBC step
Hello everyone, I am getting below error while connecting to MySql DB via JDBC step. I browsed for similar problems encountered which said check for DB name, where in my case it is correct. Please help. I see from error message, that its hitting DB server IP. ERROR:java.sql.SQLException: Access denied for user ''@'10.456.99.0' (using password: NO) Driver: com.mysql.jdbc.Driver Con string: jdbc:mysql://xxxxx.yyy.abc.com:3640/my_db;user=user&password=xxxx;665Views0likes0CommentsHow to increase socket timeout in SoapUI installed on headless Linux (No GUI)
Team, We are using SoapUI on Linux server. we are using testRunner.sh for our functional test. However whenever our request is huge, its getting timed out. So I know by default its 60 sec. How do i increase the time ?. I know in GUI. But not sure how to increase on SoapUI on headless Linux. Please help. Below is the error log 10:20:25,974 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: POST /RqstHandler/OrderLoadService HTTP/1.1 10:21:26,022 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection closed 10:21:26,023 DEBUG [HttpClientSupport$SoapUIHttpClient] Closing the connection. 10:21:26,023 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection closed 10:21:26,023 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Connection shut down 10:21:26,027 ERROR [WsdlSubmit] Exception in request: java.net.SocketTimeoutException: Read timed out 10:21:26,027 ERROR [SoapUI] An error occurred [Read timed out], see error log for details java.net.SocketTimeoutException: Read timed out12KViews0likes5Comments