Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-9058

jaxws binding example in documentation no more work in v4.x because of jarkarta

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0.0, 4.0.1, 4.0.2, 4.0.3, 4.0.4, 4.0.5
    • 4.1.0, 4.0.6
    • Tooling
    • None
    • Unknown

    Description

      in cxf wsdl2java documentation :

      https://cxf.apache.org/docs/wsdl-to-java.html

       

      You have the ability to use JAXWS binding file to customise wsdl2java generation to enable enableWrapperStyle:

       

      <jaxws:bindings    
         xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
         xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"    
         wsdlLocation="your.wsdl"    
         xmlns="http://java.sun.com/xml/ns/jaxws"    
         xmlns:jaxws="http://java.sun.com/xml/ns/jaxws">    
         <enableWrapperStyle>false</enableWrapperStyle>
      </jaxws:bindings> 

       

      and i got this error :

      org.apache.cxf.tools.common.ToolException: Not a valid jaxb or jaxws binding file, please check the namespace

      but with v4.x cxf had upgraded to jakarta.... and now we need to change namespace:

      <jaxws:bindings version="3.0"    
         xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
         xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"    
         wsdlLocation="your.wsdl"    
         xmlns="http://jakarta.ee/xml/ns/jaxws"    
         xmlns:jaxws="http://jakarta.ee/xml/ns/jaxws">    
         <enableWrapperStyle>false</enableWrapperStyle>
      </jaxws:bindings>  

      we need to change java.sun.com to jakarta.ee and add version="3.0".

       

      can you modify documentation to explain the difference between <4.x and >=4.x.

      Attachments

        Issue Links

          Activity

            People

              reta Andriy Redko
              info-apache@ch2o.info Mathieu CARBONNEAUX
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: