我正在尝试使用 jax-ws wsimport 生成我的客户端存根。我的 Web 服务在 Jboss 7.1.1 上运行,但所有请求都通过 https 转到 Apache,这只是将 Url 从 https 重写为 http 并编辑端口。
我的 wsimport 看起来像这样:
wsimport -keep https:// server/webservice?wsdl
我的发布地址:
http://server :8099/webservice
如果我直接访问 Jboss,一切都很好,但是如果我尝试使用 https 访问 apache,我会遇到以下异常:
[ERROR] White spaces are requieed between publicId and systemId.
line 1 of https: //server/webservice?wsdl
[ERROR] White spaces are requieed between publicId and systemId.
Failed to read the WSDL document: https://...., 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 leadt one WSDL with at least one service definition needs to be provided.
Failed to parse the wsdl
如果我通过 https,我是否需要做任何配置?