[ 
http://jira.codehaus.org/browse/XFIRE-656?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_99075
 ] 

Jose Manuel Valladares Pernas commented on XFIRE-656:
-----------------------------------------------------

I think this issue is related to xmlbeans and not xfire.
And it was already solved (at least in xmlbeans 2.2).

If I use the option ignoreDuplicatesInNamespaces (specifying the namespace of 
the repeated types) in the xmlbeans ant task it doesn't give any error.

Something like this:
<taskdef name="xmlbean" classname="org.apache.xmlbeans.impl.tool.XMLBean" 
classpathref="xfire.classpath" />
<xmlbean classpathref="xfire.classpath" classgendir="classes" 
failonerror="true" srcgendir="classes/src" memoryMaximumSize="1024m" 
ignoreDuplicatesInNamespaces="http://www.miraiespana.com/XMAS"; >

Sorry that I didn't find the correct solution until now.

So you can set this issue as resolved.

Thank you very much for all your help.

> 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
>            Assignee: Dan Diephouse
>             Fix For: 1.2.7
>
>         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

Reply via email to