【问题标题】:Error when I try to create web service client尝试创建 Web 服务客户端时出错
【发布时间】:2014-05-29 13:39:50
【问题描述】:

我在尝试生成 Web 服务客户端时遇到问题 这是地址

*https://apphom.correios.com.br/SigepMasterJPA/AtendeClienteService/AtendeCliente?wsdl*

我尝试了“eclipse”,没有任何反应,出现以下错误

*> The service definition selected is invalid.*

我也试过 wsimport 但它给了我这个错误

*> sun.security.validator.ValidatorException: PKIX path building failed:
> su   n.security.provider.certpath.SunCertPathBuilderException: unable
> to find valid c   ertification path to requested target      Failed to
> read the WSDL document: https://apphom.correios.com.br/SigepMasterJPA/
> AtendeClienteService/AtendeCliente?wsdl, because 1) could not find the
> document;   /2) the document could not be read; 3) the root element of
> the document is not   <wsdl:definitions>.  
>       [ERROR] failed.noservice=Could not find wsdl:service in the provided WSDL(s):      At least one WSDL with at least one service
> definition needs to be provided.  
>   
>   
>         Failed to parse the WSDL.*

我在 jvm 和 windows 中导入了数字证书, 我不知道发生了什么,有人可以帮帮我吗?

【问题讨论】:

    标签: java eclipse web-services wsdl wsimport


    【解决方案1】:

    This link 为这个问题提供了分步解决方案。

    【讨论】:

    • 那么我需要将应用服务器作为 weblogic 运行吗?但是生成 Web 服务客户端有什么影响我在尝试生成客户端之前这样做了 > keytool -import -trustcacerts -keystore cacerts -storepass changeit > -noprompt -alias correios1 -file correios1.crt i> 这应该可以完美运行,但它不是
    • 您不需要运行应用程序服务器。您可以从命令提示符执行此操作。只需要设置jdk路径即可。设置路径=D:\Java1.6\jdk1.6.0_20\bin
    猜你喜欢
    • 2012-03-02
    • 1970-01-01
    • 1970-01-01
    • 2012-05-15
    • 1970-01-01
    • 1970-01-01
    • 2012-05-16
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多