Переход на https при обращении к SOAP 1C из сервиса grade-sync
связано с https://support.sfedu.ru/Ticket/Display.html?id=181533
запросы со стороны nodejs сервиса к любому методу завершаются ошибкой, если адрес https
ECONNRESET TLSWrap.onStreamRead
запросы из консольной утилиты soapui при запуске простого теста с обращением к GetSubdivisions проходят успешно (200OK)
SoapUI-5.6.0/bin/testrunner.sh brs-getsubdivisions-soapui-project.xml
================================
=
= SOAPUI_HOME = /http/grade-dev/SoapUI-5.6.0
=
================================
SoapUI 5.6.0 TestCase Runner
13:02:18,599 INFO [DefaultSoapUICore] Creating new settings at [/http/grade-dev/soapui-settings.xml]
13:02:19,815 INFO [PluginManager] 0 plugins loaded in 2 ms
13:02:19,816 INFO [DefaultSoapUICore] All plugins loaded
13:02:21,133 INFO [WsdlProject] Loaded project from [file:/http/grade-dev/brs-getsubdivisions-soapui-project.xml]
13:02:21,147 INFO [SoapUITestCaseRunner] Running SoapUI tests in project [brs-getsubdivisions]
13:02:21,159 INFO [SoapUITestCaseRunner] Running Project [brs-getsubdivisions], runType = SEQUENTIAL
13:02:21,174 INFO [SoapUITestCaseRunner] Running SoapUI testcase [TestCase1]
13:02:21,187 INFO [SoapUITestCaseRunner] running step [GetSubdivisions - Request 1]
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.apache.commons.beanutils.PropertyUtilsBean (file:/http/grade-dev/SoapUI-5.6.0/lib/commons-beanutils-1.7.0.jar) to method sun
.security.ssl.SSLSocketImpl.setHost(java.lang.String)
WARNING: Please consider reporting this to the maintainers of org.apache.commons.beanutils.PropertyUtilsBean
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
13:02:21,411 DEBUG [HttpClientSupport$SoapUIHttpClient] Attempt 1 to execute request
13:02:21,411 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: POST /1C-UniverProf/ws/brs.1cws HTTP/1.1
13:02:21,705 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Receiving response: HTTP/1.1 401 Unauthorized
13:02:21,709 DEBUG [HttpClientSupport$SoapUIHttpClient] Connection can be kept alive indefinitely
13:02:21,709 DEBUG [HttpClientSupport$SoapUIHttpClient] Authentication required
13:02:21,709 DEBUG [HttpClientSupport$SoapUIHttpClient] hq-1c-web-exchange:443 requested authentication
13:02:21,714 DEBUG [HttpCredentialsProvider] hq-1c-web-exchange:443 requires authentication with the realm '1C:Enterprise 8.3'
13:02:21,715 DEBUG [HttpClientSupport$SoapUIHttpClient] Selected authentication options: [BASIC [complete=true]]
13:02:21,718 DEBUG [HttpClientSupport$SoapUIHttpClient] Attempt 2 to execute request
13:02:21,718 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Sending request: POST /1C-UniverProf/ws/brs.1cws HTTP/1.1
13:02:22,572 DEBUG [SoapUIMultiThreadedHttpConnectionManager$SoapUIDefaultClientConnection] Receiving response: HTTP/1.1 200 OK
13:02:22,572 DEBUG [HttpClientSupport$SoapUIHttpClient] Connection can be kept alive indefinitely
13:02:22,572 DEBUG [HttpClientSupport$SoapUIHttpClient] Authentication succeeded
13:02:22,974 INFO [SoapUITestCaseRunner] Assertion [SOAP Response] has status VALID
13:02:23,013 INFO [SoapUITestCaseRunner] Finished running SoapUI testcase [TestCase1], time taken: 1779ms, status: FINISHED
13:02:23,028 INFO [SoapUITestCaseRunner] Project [brs-getsubdivisions] finished with status [FINISHED] in 1850ms