我遇到了这个问题:
The method getPort(QName, Class<T>) in the type Service is not applicable for the arguments (QName, Class<AcessoDadosGeolocalizacao>, WebServiceFeature[])
我使用 wsimport
来生成我的客户端,但现在我的 Maven 应用程序正在使用来自
<dependency>
<groupId>javaee</groupId>
<artifactId>javaee-api</artifactId>
<version>5</version>
<scope>provided</scope>
</dependency>
如何使用 JDK 6 中的 javax.xml.ws.Service?
最佳答案
我已将 webservices-api 添加到我的 pom.xml 中,问题消失了。
<dependency>
<groupId>javax.xml</groupId>
<artifactId>webservices-api</artifactId>
<version>2.1-b14</version>
</dependency>
关于maven - 从 JDK 设置 javax.xml.ws.Service,而不是使用 maven 的 javaee-api,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23136828/