从HTTPS网址生成Java Web Service客户端 [英] Generate Java Web Service Client from HTTPS url

查看:386
本文介绍了从HTTPS网址生成Java Web Service客户端的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为Web服务实施测试客户端。服务使用HTTPS,我试图使用Eclipse向导来生成客户端。



使用此url Eclipse找不到WSDL定义:向导警告所选择的服务定义无效。,该进程无法继续。



该URL是正确的,我验证了它实现一个.NET客户端和有用。
唯一的问题是SSL证书已过期。



如何在java中正确生成客户端?

解决方案

通过其他方式捕获WSDL,例如使用浏览器下载WSDL,然后使用非SSL服务器(甚至只是一个文件)在本地访问WSDL。看起来Eclipse不能处理SSL问题(这可能是一个bug,他们应该有一个忽略它的选项)。


I'm implementing a test client for a web service. The service use HTTPS and I'm trying to use the Eclipse wizard to generate the client.

Using this url Eclipse cannot find the WSDL definition: The wizard alerts that "The service definition selected is invalid." and the process cannot go ahead.

The url is correct, I verified it implementing a .NET client and it works. The only issue is that the SSL certificate is expired.

How can I generate the client correctly in java?

解决方案

Capture the WSDL by other means, like download it with your browser and then access it locally with a non-SSL server (or even just a file). It looks like Eclipse can't deal with an SSL problem (which is likely a bug on their part, they should have an option to ignore it).

这篇关于从HTTPS网址生成Java Web Service客户端的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆