Issue is render because of command mentioned in blog. I am using "apache-cxf-3.0.0-milestone2" version. When i am using mentioned command in blog, In Weather generated class files, i am getting below error :-
//This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
//API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
//compliant code instead.**
public Weather(WebServiceFeature ... features) {
super(WSDL_LOCATION, SERVICE);
}
//This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
//API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
//compliant code instead.
public Weather(URL wsdlLocation, WebServiceFeature ... features) {
super(wsdlLocation, SERVICE);
}
//This constructor requires JAX-WS API 2.2. You will need to endorse the 2.2
//API jar or re-run wsdl2java with "-frontend jaxws21" to generate JAX-WS 2.1
//compliant code instead.
public Weather(URL wsdlLocation, QName serviceName, WebServiceFeature ... features) {
super(wsdlLocation, serviceName);
}
To remove the error from stubs, please find the new command mentioned below :-
*New command :-
wsdl2java -frontend jaxws21 -p com.aem.ws -d c:\proxy http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL