[jboss-user] [JBoss Tools] - Re: generating web services client codes in .apt_src folder..

Brian Fitzpatrick do-not-reply at jboss.com
Thu Apr 26 18:06:36 EDT 2012


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&containerType=14&container=2128]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120426/af7f4fba/attachment.html 


More information about the jboss-user mailing list