Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/311.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 通过https从WSDL使用wsimport生成存根_Java_Web Services_Https_Jboss_Jax Ws - Fatal编程技术网

Java 通过https从WSDL使用wsimport生成存根

Java 通过https从WSDL使用wsimport生成存根,java,web-services,https,jboss,jax-ws,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,我

我正试图用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
[ERROR]publicId和systemId之间需要空格。
https://server/webservice?wsdl的第1行
[错误]publicId和systemId之间需要空格。
无法读取WSDL文档:https://....,因为1)找不到文档/2) 文件无法读取/3文档的根元素不是。
[ERROR]failed.noservice=在提供的wsdl中找不到wsdl:service:
至少需要提供一个具有至少一个服务定义的WSDL。
未能分析wsdl
如果我使用https,有可能需要进行任何配置吗