[
https://issues.apache.org/jira/browse/CXF-3268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12985117#action_12985117
]
Gladwin commented on CXF-3268:
------------------------------
Alternative workaround you recommended works great!
{{"wsdl2java -frontend jaxws21"}} sounds better to me. I think it will be an
important new feature to CXF as not many organisations may have moved past
Java6 and would like to have jaxws_2.1
> wsdl2java generated Service class has overloaded constructors with
> WebServiceFeature ... features parameter
> -----------------------------------------------------------------------------------------------------------
>
> Key: CXF-3268
> URL: https://issues.apache.org/jira/browse/CXF-3268
> Project: CXF
> Issue Type: Bug
> Components: WS-* Components
> Affects Versions: 2.3.2
> Environment: Windows XP, Oracle jdk160_18
> Reporter: Gladwin
> Assignee: Daniel Kulp
> Priority: Blocker
> Fix For: Invalid
>
>
> wsdl2java generated Service class has overloaded constructors with
> WebServiceFeature ... features parameter which is passed on to *super*
> constructor. However {{javax.xml.ws.Service}} does not have required
> overloaded constructor causing compilation errors.
> Extract from wsdl2java output
> {{
> Loading FrontEnd jaxws ...
> Loading DataBinding jaxb ...
> wsdl2java -fe jaxws -db jaxb -wv 1.1 -verbose -client -autoNameResolution
> -mark-generated -sn MyXyzService
> -dC:\helios\my_workspace\proj-ws-gen\src\main\java -classdir
> C:\helios\my_workspace\proj-ws-gen\target\classes
> http://dev01.xyz.org:10003/Services/MyXyzService/V2?WSDL
> wsdl2java - Apache CXF 2.3.2
> }}
> Extract from generated service class showing overloaded constructors causing
> compile error
> {{
> @Generated(value = "org.apache.cxf.tools.wsdlto.WSDLToJava", date =
> "2011-01-21T15:44:35.467-05:00", comments = "Apache CXF 2.3.2")
> public class MyXyzService extends Service {
> ...
>
> @Generated(value = "org.apache.cxf.tools.wsdlto.WSDLToJava", date =
> "2011-01-21T15:44:35.467-05:00")
> public MyXyzService(WebServiceFeature ... features) {
> super(WSDL_LOCATION, SERVICE, features);
> }
> @Generated(value = "org.apache.cxf.tools.wsdlto.WSDLToJava", date =
> "2011-01-21T15:44:35.467-05:00")
> public MyXyzService(URL wsdlLocation, WebServiceFeature ... features) {
> super(wsdlLocation, SERVICE, features);
> }
> @Generated(value = "org.apache.cxf.tools.wsdlto.WSDLToJava", date =
> "2011-01-21T15:44:35.467-05:00")
> public MyXyzService(URL wsdlLocation, QName serviceName,
> WebServiceFeature ... features) {
> super(wsdlLocation, serviceName, features);
> }
> ...
> }
> }}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.