I have had a chance to try this out and hit upon the issue you indicated. With AS 7.1 I'm seeing the following as the broken code. Note the notes about different constructors requiring different versions of JAX-WS. The workaround is to simply comment out the broken constructors and then it compiles fine even if generated in the .apt_src alternate source directory.
//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 AreaService_Service(WebServiceFeature ... features) {
super(WSDL_LOCATION, SERVICE, features);
}
//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 AreaService_Service(URL wsdlLocation, WebServiceFeature ... features) {
super(wsdlLocation, SERVICE, features);
}
//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 AreaService_Service(URL wsdlLocation, QName serviceName, WebServiceFeature ... features) {
super(wsdlLocation, serviceName, features);
}
I will continue to poke around, but the workaround at least seems pretty obvious. :)