通过https从WSDL生成带有wsimport的Stub

时间:2012-09-13 12:33:53

标签: java web-services https jboss jax-ws

我正在尝试使用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,是否需要执行任何配置?

0 个答案:

没有答案