【发布时间】:2016-11-02 19:02:33
【问题描述】:
所以我们有一个 SOAP 客户端一直在工作,而客户最近将服务器切换到使用带有自签名证书的 SSL。现在我试图弄清楚如何让我们的客户端使用正确的 SSL 上下文。我发现了一个相关的问题here;但我不知道如何将它与我的代码联系起来(相关部分总结如下 - DCAMethods[Soap] 是一个 cxf 生成的接口)。
File tmp = cacheWsdl(UUID.randomUUID().toString(), new URL(wsdlLocation), anzoSSLContext);
// It would be useful to specify the SSLContext here, but I am working around that.
DCAMethods methods = new DCAMethods(tmp.toURI().toURL());
DCAMethodsSoap soapInterface = methods.getDCAMethodsSoap();
// Need to specify the SSLContext for this call.
String rawXmlData = (String) soapInterface.getCopy(connectionId, username, password, documentVersionId, rendition);
【问题讨论】:
标签: java soap cxf soap-client