[ 
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.

Reply via email to