[
https://issues.apache.org/jira/browse/CXF-9058?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andriy Redko reassigned CXF-9058:
---------------------------------
Assignee: Andriy Redko
> 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.0, 4.0.1, 4.0.2, 4.0.3, 4.0.4, 4.0.5
> Reporter: Mathieu CARBONNEAUX
> Assignee: Andriy Redko
> Priority: Major
> Fix For: 4.1.0, 4.0.6
>
>
> 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".
>
> can you modify documentation to explain the difference between <4.x and >=4.x.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)