Mathieu CARBONNEAUX created CXF-9058:
----------------------------------------

             Summary: jaxws binding example in documentation no more work in 
v4.x because of jarkarta
                 Key: CXF-9058
                 URL: https://issues.apache.org/jira/browse/CXF-9058
             Project: CXF
          Issue Type: Bug
          Components: Tooling
    Affects Versions: 4.0.5, 4.0.4, 4.0.3, 4.0.2, 4.0.1, 4.0.0
            Reporter: Mathieu CARBONNEAUX


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:

 
{code:java}
<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> {code}
 

and i got this error :
{noformat}
org.apache.cxf.tools.common.ToolException: Not a valid jaxb or jaxws binding 
file, please check the namespace{noformat}
but with v4.x cxf had upgraded to jakarta.... and now we need to change 
namespace:
{code:java}
<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>  {code}
we need to change java.sun.com to jakarta.ee and add version="3.0".

 



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

Reply via email to