tag:blogger.com,1999:blog-1710464868724994296.post8752917730589796108..comments2023-06-29T09:48:09.653-04:00Comments on Java XML and JSON Binding: Reusing Generated JAXB ClassesBlaise Doughanhttp://www.blogger.com/profile/02016807982653343777noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-1710464868724994296.post-88826993163333163562013-11-22T11:25:00.791-05:002013-11-22T11:25:00.791-05:00You XML content didn't survive the limitations...You XML content didn't survive the limitations of the content area. Are you able to post this as a question on <a href="http://stackoverflow.com/" rel="nofollow">Stack Overflow</a>?Blaise Doughanhttps://www.blogger.com/profile/02016807982653343777noreply@blogger.comtag:blogger.com,1999:blog-1710464868724994296.post-64082511218337890252013-11-22T10:42:03.322-05:002013-11-22T10:42:03.322-05:00Help! (I realize I'm coming two years late to...Help! (I realize I'm coming two years late to the party. I hope you're still listening.) Anyway, thanks for this article, it is exactly what I was trying to do. However, when I bring in the episode file, my second xjc task doesn't output the java files. I'm using com.sun.tools.xjc.XJCTask inside ant rather than calling xjc from a command line, but I don't think that should matter. (Right?)<br /><br />I have the following in my build.xml. If I remove binding="common.episode" from the second task, then it works (expect that it puts all the classes for the import of common.xsd there, as well.) <br /><br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br /> <br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1710464868724994296.post-40201878961140866222011-12-16T10:01:36.287-05:002011-12-16T10:01:36.287-05:00One thing to note is that episode files and the JA...One thing to note is that episode files and the JAX-WS-RI wsimport and CXF's wsdl2java commands are relatively incompatible. See the bug logged at:<br /><br />http://java.net/jira/browse/JAXB-514<br /><br />Thus, if you'd like to re-use the JAXB code for multiple JAX-WS based WebServices, the episode idea doesn't really work. :-(Daniel Kulphttp://dankulp.com/blognoreply@blogger.comtag:blogger.com,1999:blog-1710464868724994296.post-76792980803160637632011-12-13T15:20:03.055-05:002011-12-13T15:20:03.055-05:00Hi Su,
Other schemas can still import Product.xsd...Hi Su,<br /><br />Other schemas can still import Product.xsd in your use case. This is one of the use cases where episode files can be leveraged since it allows you to target XJC extensions at a particular shcmea, and have these generated classes available to be referenced by other generated classes.<br /><br />-BlaiseBlaise Doughanhttps://www.blogger.com/profile/02016807982653343777noreply@blogger.comtag:blogger.com,1999:blog-1710464868724994296.post-40939505873060434872011-12-13T12:47:23.803-05:002011-12-13T12:47:23.803-05:00Hi
What if the Product.xsd file had customizations...Hi<br />What if the Product.xsd file had customizations like inheritance:implements plugin from xjc-basics plugin.I don think then we can import it<br />-SuSubinhttps://www.blogger.com/profile/08527225644725219689noreply@blogger.com