You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Dobes Vandermeer (JIRA)" <ji...@apache.org> on 2011/03/23 21:59:05 UTC
[jira] [Created] (CXF-3416) Have wsdl2java generate a constructor
that sets all fields
Have wsdl2java generate a constructor that sets all fields
----------------------------------------------------------
Key: CXF-3416
URL: https://issues.apache.org/jira/browse/CXF-3416
Project: CXF
Issue Type: Improvement
Components: Soap Binding
Reporter: Dobes Vandermeer
Be nice to have the data classes generated by wsdl2java so that you can construct them easily, either by having a constructor to fill in all the fields or have the setters return "this" so you can chain them together. Otherwise constructing a tree objects becomes quite a lot of work.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CXF-3416) Have wsdl2java generate a constructor
that sets all fields
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3416?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp resolved CXF-3416.
------------------------------
Resolution: Won't Fix
Fix Version/s: Invalid
I'm going to mark this "Won't Fix". This is really a JAXB/XJC issue. HOWEVER, there exists and XJC plugin that can already do this:
http://java.net/projects/jaxb2-commons/pages/value-constructor
That plugin can be used along with CXF's wsdl2java tooling to accomplish this.
> Have wsdl2java generate a constructor that sets all fields
> ----------------------------------------------------------
>
> Key: CXF-3416
> URL: https://issues.apache.org/jira/browse/CXF-3416
> Project: CXF
> Issue Type: Improvement
> Components: Soap Binding
> Reporter: Dobes Vandermeer
> Fix For: Invalid
>
>
> Be nice to have the data classes generated by wsdl2java so that you can construct them easily, either by having a constructor to fill in all the fields or have the setters return "this" so you can chain them together. Otherwise constructing a tree objects becomes quite a lot of work.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CXF-3416) Have wsdl2java generate a constructor
that sets all fields
Posted by "Freeman Fang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13010576#comment-13010576 ]
Freeman Fang commented on CXF-3416:
-----------------------------------
Hi,
I think the -defaultValues flag of wsdl2java is what you want, paste the wsdl2java -h result about this flag
-defaultValues<=class-name-for-DefaultValueProvider>
Specifies that default values are generated for the dummy
implementation and client. You can specify the name of the
class to provide the default values. The default is
RandomValueProvider.
Freeman
> Have wsdl2java generate a constructor that sets all fields
> ----------------------------------------------------------
>
> Key: CXF-3416
> URL: https://issues.apache.org/jira/browse/CXF-3416
> Project: CXF
> Issue Type: Improvement
> Components: Soap Binding
> Reporter: Dobes Vandermeer
>
> Be nice to have the data classes generated by wsdl2java so that you can construct them easily, either by having a constructor to fill in all the fields or have the setters return "this" so you can chain them together. Otherwise constructing a tree objects becomes quite a lot of work.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CXF-3416) Have wsdl2java generate a constructor
that sets all fields
Posted by "Dobes Vandermeer (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-3416?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13015184#comment-13015184 ]
Dobes Vandermeer commented on CXF-3416:
---------------------------------------
Thanks, it looks like value-constructor is what I was looking for. I'll see if I can figure out how to get wsdl2java to do that.
> Have wsdl2java generate a constructor that sets all fields
> ----------------------------------------------------------
>
> Key: CXF-3416
> URL: https://issues.apache.org/jira/browse/CXF-3416
> Project: CXF
> Issue Type: Improvement
> Components: Soap Binding
> Reporter: Dobes Vandermeer
> Fix For: Invalid
>
>
> Be nice to have the data classes generated by wsdl2java so that you can construct them easily, either by having a constructor to fill in all the fields or have the setters return "this" so you can chain them together. Otherwise constructing a tree objects becomes quite a lot of work.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira