我尝试创建Web服务客户端时出错

时间:2014-05-29 13:39:51

标签: java eclipse web-services wsdl wsimport

当我尝试生成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中导入了数字证书, 我不知道发生了什么,有人可以帮助我吗?

1 个答案:

答案 0 :(得分:0)

This link为此问题提供了一步一步的解决方案。