cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dennis Kieselhorst (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-629) WSDL2Java/cxf-codegen-plugin should not generate client artifacts when "-impl" flag is provided
Date Mon, 10 Apr 2017 14:47:41 GMT

    [ https://issues.apache.org/jira/browse/CXF-629?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15962977#comment-15962977
] 

Dennis Kieselhorst commented on CXF-629:
----------------------------------------

This is CXF's most voted issue. Internally there is already a CFG_GEN_SEI = "genSEI" in ToolConstants
put it's not possible to pass this option from Maven.

I'd also like to have -server only generating the SEI but I'm unsure if the existing behavior
can be changed for 3.2.0 because users may need to adapt there configuration. So probably
we should just introduce a new option for it, add a testcase in Codegen*Test in cxf-tools-wsdlto-test
and adapt the passthrough() methods in the generator classes.

I can provide a PR if we agree on a solution...

> WSDL2Java/cxf-codegen-plugin should not generate client artifacts when "-impl" flag is
provided
> -----------------------------------------------------------------------------------------------
>
>                 Key: CXF-629
>                 URL: https://issues.apache.org/jira/browse/CXF-629
>             Project: CXF
>          Issue Type: Improvement
>          Components: Tooling
>    Affects Versions: 2.0-RC
>         Environment: NA
>            Reporter: Steven E. Harris
>            Assignee: Jim Ma
>            Priority: Minor
>
> When trying to generate server-side artifacts using the cxf-codegen-plugin Maven plugin
(WSDL2Java), one can optionally provide the argument "-impl" to get server-side code generated.
If one passes no arguments, the client-side code gets generated (SEI and Service implementation).
If one passes "-client", the SEI, Service implementation, and a sample client program get
generated.
> If one passes only "-impl", the SEI and skeleton implementation get generated, as well
as the Service implementation. There should be some way to not have the Service implementation
generated. Unfortunately, the command-line arguments as they stand are not adequate to capture
the possible combinations of choices: client-side, server-side, implementation helpers, and
sample program.
> In my case, on the client, I just want the SEI and the Service implementation. I should
be able to ask for this with something like "--client-impl". On the server side, I just want
the SEI and skeleton, which could be expressed as "--server-impl". If I also wanted a sample
program for hte server, I could ask for "--server-harness". Passing no arguments would trigger
just the SEI and the schema types to be generated, but no Service implementation or skeleton.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message