You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Ralf Hauser (JIRA)" <ji...@apache.org> on 2013/12/11 09:00:13 UTC
[jira] [Commented] (CXF-3269) nice to have a tool xsd2java
[ https://issues.apache.org/jira/browse/CXF-3269?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13845167#comment-13845167 ]
Ralf Hauser commented on CXF-3269:
----------------------------------
This could easily be done as per
http://stackoverflow.com/a/6995432
> nice to have a tool xsd2java
> ----------------------------
>
> Key: CXF-3269
> URL: https://issues.apache.org/jira/browse/CXF-3269
> Project: CXF
> Issue Type: Wish
> Components: Tooling
> Reporter: Gladwin
> Priority: Minor
>
> In a scenario where by multiple wsdl's refer to same schema, it would be nice to separate the process of generating service from WSDL (with option {{-nexclude schema-namespace [=java-packagename]}}) v/s generating JAXB mapping POJOs with {{xsd2java}}.
> For this we would need a tool *xsd2java* which is similar to *wsdl2java* but instead would generate java code from XSD URL. {{xjc}} tool that comes with JDK will do the trick but does not have advance options like multiple {{-p [ wsdl-namespace= ] PackageName}}, {{-autoNameResolution}}, etc.
> Further more this will help CXF to be used in non webservice scenarios where XML data exchange takes place and JAXB mapping POJOs needs to be generated from XSD.
--
This message was sent by Atlassian JIRA
(v6.1.4#6159)