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

chinna_82 picture chinna_82 · Mar 7, 2012 · Viewed 26.6k times · Source

I got The constructor Service(URL, QName, WebServiceFeature[]) is undefined error after I run wsimport for my client web service. Im using JDK 1.6. Please help.

Error

Answer

mickey picture mickey · Nov 21, 2012

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