Brian Fitzpatrick [
https://community.jboss.org/people/bfitzpat] created the discussion
"Re: generating web services client codes in .apt_src folder.."
To view the discussion, visit:
https://community.jboss.org/message/732539#732539
--------------------------------------------------------------
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. :)
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/732539#732539]
Start a new discussion in JBoss Tools at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]