[英]In Java 8, MyServicePort.java class is missing when generating java classes by using wsimport
In Java8, Generated web service java classes by using 在Java8中,通过使用生成的Web服务Java类
wsimport -keep http://sasikumar:8080/SimpleWebServiceServer/AdditionService?wsdl
I can't MyServicePort.java(AdditionPort.java) class from the generated files list 我无法从生成的文件列表中选择MyServicePort.java(AdditionPort.java)类
so anyone give me some idea about writing client stub without MyServicePort.java(AdditionPort.java) class 所以任何人都会给我一些关于不使用MyServicePort.java(AdditionPort.java)类编写客户端存根的想法
This answer goes a bit late. 这个答案有点晚了。 I had same issue while using maven plugin
jaxws-maven-plugin
. 使用maven插件
jaxws-maven-plugin
遇到相同的问题。 I was about to generate client code for some Microsoft service, everything went fine but Port and Service classes where missing. 我打算为某些Microsoft服务生成客户端代码,一切正常,但是缺少Port和Service类。 In debug enabled I saw the root cause, there was message:
在启用调试的过程中,我看到了根本原因,出现了以下消息:
[WARNING] Ignoring SOAP port "WSHttpBinding_IMyService": it uses non-standard SOAP 1.2 binding.
You must specify the "-extension" option to use this binding.
line 1 of https://my.address.to.wsdl
[WARNING] Service "MyService" does not contain any usable ports. try running wsimport with -extension switch.
line 1 of https://my.address.to.wsdl
Adding "-extension" resolved problem. 添加“扩展名”已解决问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.