I'm consuming a WebService in my Java application and am encountering the following error:
The constructor Service (URL, QName, WebServiceFeature []) is undefined
public AnaliseCredito(URL wsdlLocation, WebServiceFeature ... features) {
super(wsdlLocation, SERVICE, features);
}
The problem is that I'm using JAX-WS 2.2
, according to documentation , has the constructor in question.
Include dependency in my pom.xml
:
<dependency>
<groupId>javax.xml.ws</groupId>
<artifactId>jaxws-api</artifactId>
<version>2.2</version>
</dependency>