cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-2429) wsdl2java tool generates client stub which always uses default (JAXB) databinding while another one style is specified in the command line (-db argument)
Date Fri, 11 Sep 2009 17:32:57 GMT

    [ https://issues.apache.org/jira/browse/CXF-2429?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12754236#action_12754236
] 

Daniel Kulp commented on CXF-2429:
----------------------------------


As a point of note: this is fixed on trunk, but it's not something that can be backported
to 2.2/2.1 due to it using new annotation infrastructure available only on trunk.

For 2.1/2.2, it would need to either:

1) Generate a spring config file (cxf.xml) that would configure the databinding for the ports.

2) Not generate the Service.java at all and require you to use the JaxWsServiceFactoryBean
API's and such.

3) Embed some other code in the generated Service to set the databinding, but that might have
JAX-WS spec compliance issues.   



> wsdl2java tool generates client stub which always uses default (JAXB) databinding while
another one style is specified in the command line (-db argument)
> ---------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CXF-2429
>                 URL: https://issues.apache.org/jira/browse/CXF-2429
>             Project: CXF
>          Issue Type: Bug
>          Components: Tooling
>    Affects Versions: 2.1.6, 2.2.3
>         Environment: the issue is not environment related
>            Reporter: Michael Klimiuk
>
> SCENARIO:
> The following ant task is executed to generate client artifacts:
>         <java classname="org.apache.cxf.tools.wsdlto.WSDLToJava" fork="true">
>             <arg value="-client" />
>             <arg value="-db" />
>             <arg value="xmlbeans" />
>             <arg value="-d" />
>             <arg value="${gen.dir}" />
>             <arg value="${wsdl.file}" />
>             <classpath>
>                 <path refid="ws.classpath" />
>             </classpath>
>         </java>
> ACTUAL RESULT:
> Generated class XXXService.java uses default databinding style (JAXB) for creation of
a service client while the XmlBeans style is specified. Furthermore, the databinding style
cannot even be changed programmatically using available interfaces.
> EXPECTED RESULT:
> Generated class XXXService.java must use the specified databinding style for creation
of a service client.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message