Details
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
- is related to
-
CXF-9061 Update documentation to use Jakarta namespaces as well (where appropriate)
- Open