[ http://jira.codehaus.org/browse/XFIRE-656?page=all ]
Dan Diephouse updated XFIRE-656:
--------------------------------
Fix Version/s: (was: 1.2.3)
1.2.4
Hiya, I did some poking around and it seems there might be a workaround. Can
you try doing this:
1. Download this file :
http://weblogs.java.net/blog/kohsuke/archive/20060315/simpleMode.xsd/simpleMode.xsd
2. running wsgen with the -externalBinding parameter:
<wsgen ... externalBinding="simpleMode.xsd"/>
That file is supposed to put JAXB in a "special" mode where it compiles with
fewer errors. Let me know if that works!
> Errors with wsgen because types are defined in two schemas
> ----------------------------------------------------------
>
> Key: XFIRE-656
> URL: http://jira.codehaus.org/browse/XFIRE-656
> Project: XFire
> Issue Type: Bug
> Components: Generator
> Affects Versions: 1.2.1
> Environment: openSuse 10.1
> jsdk 1.5.0_06-b05
> xfire 1.2.1
> XMLSchema 1.1
> Reporter: Jose Manuel Valladares Pernas
> Assigned To: Dan Diephouse
> Fix For: 1.2.4
>
> Attachments: files.ZIP
>
>
> I am using wsgen to generate the java client classes from a wsdl file that
> references 2 schema files with the type information.
> The schema files redefine the same types, and wsgen returns errors when I run
> it.
> The errors are like the following:
> [wsgen] Sep 19, 2006 4:25:08 PM
> org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
> [wsgen] SEVERE: 'AlphaLength3' is already defined at 65,70 in
> file:/home/jmanuel/src/MiraiOTA/OTA_Cancel/xsd/FS_OTA_CancelRS.xsd
> [wsgen] Sep 19, 2006 4:25:08 PM
> org.codehaus.xfire.gen.jaxb.ErrorReceiverImpl error
> [wsgen] SEVERE: (related to above error) the first definition appears
> here at 62,64 in
> file:/home/jmanuel/src/MiraiOTA/OTA_Cancel/xsd/FS_OTA_CancelRQ.xsd
> The schema files come from the OTA specification.
> The same wsdl and schemas produce valid classes with axis 1.2.1.
> It is necesary to use XMLSchema 1.1 to pass another error that has XMLSchema
> 1.0.
> Attached are the files with the sample wsdl and xsd files.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email