Monday, March 14, 2016

The constructor Service(URL, QName, WebServiceFeature[]) is undefined






You had produced code that needs JAX-WS 2.1. Version 2.0 does not have WebServiceFeature class, and as result also not constructor in Service with such a argument type.


Additional option "-target 2.0" while using wsimport to generate source codes for JAX-WS 2.0 and so on.


Change your JAX-WS in the preferences. It is compatibility issue for Java 6 SE and Java EE


Changing from Java 1.6 to Java 1.7 also solves this issue.

You can manually add webservices-api.jar from JAX-WS 2.2 API