You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "bartolomeo sorrentino (JIRA)" <ji...@apache.org> on 2009/12/20 21:18:18 UTC
[jira] Created: (CXF-2587) wsdl2java error when there are several
nested wsdl:import
wsdl2java error when there are several nested wsdl:import
----------------------------------------------------------
Key: CXF-2587
URL: https://issues.apache.org/jira/browse/CXF-2587
Project: CXF
Issue Type: Bug
Components: Tooling
Affects Versions: 2.2.5
Reporter: bartolomeo sorrentino
I have used CXF 2.2.5 to generate java class from a complex wsdl generated from .NET environment and composed by the following files:
ContactCenter.Services.IVR.Accettazione.svc.WSDL
ContactCenter.Services.IVR.Accettazione.svc.wsdl.wsdl0
ContactCenter.Services.IVR.Accettazione.svc.wsdl.wsdl1
ContactCenter.Services.IVR.Accettazione.svc.xsd.xsd0
ContactCenter.Services.IVR.Accettazione.svc.xsd.xsd1
ContactCenter.Services.IVR.Accettazione.svc.xsd.xsd2
ContactCenter.Services.IVR.Accettazione.svc.xsd.xsd3
ContactCenter.Services.IVR.Accettazione.svc.xsd.xsd4
I have used maven to perform the wsdl2java generation but i have got the following error:
------------------------------------------------------------------------
[ERROR]BUILD ERROR
------------------------------------------------------------------------
java.lang.RuntimeException: Problem with WSDL: soap:header element is referring to an undefined wsdl:message element.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CXF-2587) wsdl2java error when there are several
nested wsdl:import
Posted by "bartolomeo sorrentino (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
bartolomeo sorrentino updated CXF-2587:
---------------------------------------
Attachment: WSDL.zip
WSDL FILES
> wsdl2java error when there are several nested wsdl:import
> ----------------------------------------------------------
>
> Key: CXF-2587
> URL: https://issues.apache.org/jira/browse/CXF-2587
> Project: CXF
> Issue Type: Bug
> Components: Tooling
> Affects Versions: 2.2.5
> Reporter: bartolomeo sorrentino
> Attachments: pom.xml, WSDL.zip
>
>
> I have used CXF 2.2.5 to generate java class from a complex wsdl generated from .NET environment and composed by the following files:
> ContactCenter.Services.IVR.Accettazione.svc.WSDL
> ContactCenter.Services.IVR.Accettazione.svc.wsdl.wsdl0
> ContactCenter.Services.IVR.Accettazione.svc.wsdl.wsdl1
> ContactCenter.Services.IVR.Accettazione.svc.xsd.xsd0
> ContactCenter.Services.IVR.Accettazione.svc.xsd.xsd1
> ContactCenter.Services.IVR.Accettazione.svc.xsd.xsd2
> ContactCenter.Services.IVR.Accettazione.svc.xsd.xsd3
> ContactCenter.Services.IVR.Accettazione.svc.xsd.xsd4
> I have used maven to perform the wsdl2java generation but i have got the following error:
> ------------------------------------------------------------------------
> [ERROR]BUILD ERROR
> ------------------------------------------------------------------------
> java.lang.RuntimeException: Problem with WSDL: soap:header element is referring to an undefined wsdl:message element.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CXF-2587) wsdl2java error when there are several
nested wsdl:import
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp resolved CXF-2587.
------------------------------
Resolution: Fixed
Fix Version/s: 2.2.6
2.1.9
This is kind of a bug in wsdl4j. The wsdl4j docs say the call to getMessage(QName) searches all the imports, but it really just searches the DIRECT imports, not the imports of imports. Easily worked around in CXF code though. Change committed.
To get it to work with 2.2.5, you can add an import into ContactCenter.Services.IVR.Accettazione.svc.WSDL for the wsdl0 import. That way, both the imports will be available from the "root" wsdl4j definition and the message can be found.
> wsdl2java error when there are several nested wsdl:import
> ----------------------------------------------------------
>
> Key: CXF-2587
> URL: https://issues.apache.org/jira/browse/CXF-2587
> Project: CXF
> Issue Type: Bug
> Components: Tooling
> Affects Versions: 2.2.5
> Reporter: bartolomeo sorrentino
> Assignee: Daniel Kulp
> Fix For: 2.1.9, 2.2.6
>
> Attachments: pom.xml, WSDL.zip
>
>
> I have used CXF 2.2.5 to generate java class from a complex wsdl generated from .NET environment and composed by the following files:
> ContactCenter.Services.IVR.Accettazione.svc.WSDL
> ContactCenter.Services.IVR.Accettazione.svc.wsdl.wsdl0
> ContactCenter.Services.IVR.Accettazione.svc.wsdl.wsdl1
> ContactCenter.Services.IVR.Accettazione.svc.xsd.xsd0
> ContactCenter.Services.IVR.Accettazione.svc.xsd.xsd1
> ContactCenter.Services.IVR.Accettazione.svc.xsd.xsd2
> ContactCenter.Services.IVR.Accettazione.svc.xsd.xsd3
> ContactCenter.Services.IVR.Accettazione.svc.xsd.xsd4
> I have used maven to perform the wsdl2java generation but i have got the following error:
> ------------------------------------------------------------------------
> [ERROR]BUILD ERROR
> ------------------------------------------------------------------------
> java.lang.RuntimeException: Problem with WSDL: soap:header element is referring to an undefined wsdl:message element.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CXF-2587) wsdl2java error when there are several
nested wsdl:import
Posted by "bartolomeo sorrentino (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
bartolomeo sorrentino updated CXF-2587:
---------------------------------------
Attachment: pom.xml
PROJECT POM
> wsdl2java error when there are several nested wsdl:import
> ----------------------------------------------------------
>
> Key: CXF-2587
> URL: https://issues.apache.org/jira/browse/CXF-2587
> Project: CXF
> Issue Type: Bug
> Components: Tooling
> Affects Versions: 2.2.5
> Reporter: bartolomeo sorrentino
> Attachments: pom.xml, WSDL.zip
>
>
> I have used CXF 2.2.5 to generate java class from a complex wsdl generated from .NET environment and composed by the following files:
> ContactCenter.Services.IVR.Accettazione.svc.WSDL
> ContactCenter.Services.IVR.Accettazione.svc.wsdl.wsdl0
> ContactCenter.Services.IVR.Accettazione.svc.wsdl.wsdl1
> ContactCenter.Services.IVR.Accettazione.svc.xsd.xsd0
> ContactCenter.Services.IVR.Accettazione.svc.xsd.xsd1
> ContactCenter.Services.IVR.Accettazione.svc.xsd.xsd2
> ContactCenter.Services.IVR.Accettazione.svc.xsd.xsd3
> ContactCenter.Services.IVR.Accettazione.svc.xsd.xsd4
> I have used maven to perform the wsdl2java generation but i have got the following error:
> ------------------------------------------------------------------------
> [ERROR]BUILD ERROR
> ------------------------------------------------------------------------
> java.lang.RuntimeException: Problem with WSDL: soap:header element is referring to an undefined wsdl:message element.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CXF-2587) wsdl2java error when there are several
nested wsdl:import
Posted by "bartolomeo sorrentino (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2587?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12793776#action_12793776 ]
bartolomeo sorrentino commented on CXF-2587:
--------------------------------------------
Thanks for feedback
So ... If i would apply the suggested workaround, .. i've download the wsdl(s) and make the change by hand
> wsdl2java error when there are several nested wsdl:import
> ----------------------------------------------------------
>
> Key: CXF-2587
> URL: https://issues.apache.org/jira/browse/CXF-2587
> Project: CXF
> Issue Type: Bug
> Components: Tooling
> Affects Versions: 2.2.5
> Reporter: bartolomeo sorrentino
> Assignee: Daniel Kulp
> Fix For: 2.1.9, 2.2.6
>
> Attachments: pom.xml, WSDL.zip
>
>
> I have used CXF 2.2.5 to generate java class from a complex wsdl generated from .NET environment and composed by the following files:
> ContactCenter.Services.IVR.Accettazione.svc.WSDL
> ContactCenter.Services.IVR.Accettazione.svc.wsdl.wsdl0
> ContactCenter.Services.IVR.Accettazione.svc.wsdl.wsdl1
> ContactCenter.Services.IVR.Accettazione.svc.xsd.xsd0
> ContactCenter.Services.IVR.Accettazione.svc.xsd.xsd1
> ContactCenter.Services.IVR.Accettazione.svc.xsd.xsd2
> ContactCenter.Services.IVR.Accettazione.svc.xsd.xsd3
> ContactCenter.Services.IVR.Accettazione.svc.xsd.xsd4
> I have used maven to perform the wsdl2java generation but i have got the following error:
> ------------------------------------------------------------------------
> [ERROR]BUILD ERROR
> ------------------------------------------------------------------------
> java.lang.RuntimeException: Problem with WSDL: soap:header element is referring to an undefined wsdl:message element.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CXF-2587) wsdl2java error when there are several
nested wsdl:import
Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2587?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Daniel Kulp reassigned CXF-2587:
--------------------------------
Assignee: Daniel Kulp
> wsdl2java error when there are several nested wsdl:import
> ----------------------------------------------------------
>
> Key: CXF-2587
> URL: https://issues.apache.org/jira/browse/CXF-2587
> Project: CXF
> Issue Type: Bug
> Components: Tooling
> Affects Versions: 2.2.5
> Reporter: bartolomeo sorrentino
> Assignee: Daniel Kulp
> Attachments: pom.xml, WSDL.zip
>
>
> I have used CXF 2.2.5 to generate java class from a complex wsdl generated from .NET environment and composed by the following files:
> ContactCenter.Services.IVR.Accettazione.svc.WSDL
> ContactCenter.Services.IVR.Accettazione.svc.wsdl.wsdl0
> ContactCenter.Services.IVR.Accettazione.svc.wsdl.wsdl1
> ContactCenter.Services.IVR.Accettazione.svc.xsd.xsd0
> ContactCenter.Services.IVR.Accettazione.svc.xsd.xsd1
> ContactCenter.Services.IVR.Accettazione.svc.xsd.xsd2
> ContactCenter.Services.IVR.Accettazione.svc.xsd.xsd3
> ContactCenter.Services.IVR.Accettazione.svc.xsd.xsd4
> I have used maven to perform the wsdl2java generation but i have got the following error:
> ------------------------------------------------------------------------
> [ERROR]BUILD ERROR
> ------------------------------------------------------------------------
> java.lang.RuntimeException: Problem with WSDL: soap:header element is referring to an undefined wsdl:message element.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.