在为我的动态客户端从 https URL 加载 WSDL 之前,我需要在HttpConduit上设置适当的配置以避免所有 SSL 错误。根据文档,我们可以对管道进行硬编码,但不确定是否以编程方式进行。Client
有没有办法在创建对象之前获取 HttpConduit DynamicClientFactory
?
JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance();
//Need to get HttpConduit here before the client is created, how?
Client client = dcf.createClient(wsdlUri);
// Can access http conduit only after client is created
HTTPConduit conduit = (HTTPConduit) client.getConduit();