我现在正在浏览数据服务服务器的RDBMS示例。该服务在'localhost:9763 / services / RDBMSSample?wsdl`并且工作正常。所以我想使用Xfire客户端来测试服务并进一步使用。这是我的代码:
import java.net.URL;
import org.codehaus.xfire.client.Client;
public class CaClient {
public static void main(String[] args) throws Exception {
try {
String s = System.getProperty("java.runtime.version");
Client client = new Client(new URL("http://***:9763/services/RDBMSSample?wsdl"));
Object[] results = client.invoke("productsInfo", new Object[]{null});
System.out.println(results[0]);
}
finally {
}
}
}
然后,我在eclipse中运行此示例代码,但得到以下错误:
06, 2013 4:16:33 org.codehaus.xfire.transport.http.HttpChannel sendViaClient
SEVERE: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
如何禁用SSL?