You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Manuel K (Jira)" <ji...@apache.org> on 2025/07/02 13:28:00 UTC

[jira] [Created] (CXF-9147) WSDL to Java: Missing namespace since 4.1.*

Manuel K created CXF-9147:
-----------------------------

             Summary: WSDL to Java: Missing namespace since 4.1.*
                 Key: CXF-9147
                 URL: https://issues.apache.org/jira/browse/CXF-9147
             Project: CXF
          Issue Type: Bug
    Affects Versions: 4.1.2, 4.1.1, 4.1.0
            Reporter: Manuel K
         Attachments: wsdl2java-bug.zip

After upgrading to CXF 4.1.*, WSDLToJava is not generating a specific namespace attribute when generating client classes from a Microsoft WCF WSDL. This leads to errors when calling the web service.

4.0.* and prior:

 
{code:java}
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ArrayOfPermissionSet", namespace = "http://NTFS/Data/PermissionSet", propOrder = {
    "permissionSet"
})
public class ArrayOfPermissionSet { {code}
4.1.*:

 

 
{code:java}
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ArrayOfPermissionSet", propOrder = {
    "permissionSet"
})
public class ArrayOfPermissionSet { {code}
I attached a reproducer with Windows batch files. Please edit the batch files to point to your local Java and CXF directories. After generating the client classes, inspect and compare the _src\wsclient\msia\ntfs\data\ArrayOfPermissionSet.java_ file.

If you need any additional info, please let me know. Thank you very much in advance!

 



--
This message was sent by Atlassian Jira
(v8.20.10#820010)