TOMCAT Eclipse Localhost调用webservice SOAP rpc TLS 1.2

时间:2018-05-11 20:10:16

标签: java eclipse tomcat soap tls1.2

我正在尝试使用下一个代码通过soap-2.3.1.jar调用webservice:

        SOAPMappingRegistry smr = new SOAPMappingRegistry();
    Call call = new Call();
    call.setSOAPMappingRegistry(smr);
    call.setTargetObjectURI("urn:mensajeriaCIBERPAC");
    call.setMethodName("procesaMensajeRecibido");
    call.setEncodingStyleURI(encodingStyleURI);
    Vector params = new Vector();
    params.addElement(new Parameter("Mensaje", String.class, xml_doc, null));
    call.setParams(params);
    Response resp = null;
    try {
        resp = call.invoke(url, "");
    } catch (SOAPException e) {
        e.printStackTrace();
    }

但服务器需要TLSvs1.1或v1.2。我收到握手错误

faultCode=SOAP-ENV:Client; msg=Error opening socket: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure; targetException=java.lang.IllegalArgumentException: Error opening socket: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure]

。我们需要在当地进行测试。

任何帮助?

非常感谢提前

0 个答案:

没有答案