idea soapui怎么使用_使用带有WSDL over HTTPS的soapUI生成Web服务类

I'm using SoapUI to generate my web service client classes (using wsimport/jax-ws ri if it makes a difference). I've had no problem with this for several services, however, the one im working on now has a wsdl file which is served via https and I get the following error when I try to generate my client classes.

[ERROR]

sun.security.validator.ValidatorException:

PKIX path building failed:

sun.security.provider.certpath.SunCertPathBuilderException:

unable to find valid certification

path to requested target

Failed to read the WSDL document:

https:///service.wsdl,

because 1) could not find the

document; /2) the document could not

be read; 3) the root element of the

document is not .

[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.

Any idea of what I have to do to resolve this? I'm assuming somewhere I have to set up security information to allow this request to work?

解决方案

I'd guess that server certificate is self-signed or otherwise untrusted.

You need to import the server's certificate into your Java keystore. (You can use this method if you wish, which looks easier than the last time I tried to do it.)

Alternatively, you can download the WSDL and supporting schemas via a browser and then run wsimport on the local files. (This approach probably won't help when you come to actually invoke the service in question)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值