尝试使用xfire客户端从DSS示例中检索数据

时间:2013-12-06 08:36:02

标签: wso2 wso2dss

我现在正在浏览数据服务服务器的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?

0 个答案:

没有答案