[
https://issues.apache.org/jira/browse/CXF-6500?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15967431#comment-15967431
]
Dennis Kieselhorst commented on CXF-6500:
-----------------------------------------
SchemaCompilerOptions are passed to XJC but autoNameResolution is a feature of
wsdl2java tool which is not involved here. So this is not a critical bug but a
feature request. Instead of DefaultClassNameAllocator a ClassNameAllocator with
autoNameResolution (similar to the ClassNameAllocatorImpl from tools) needs to
be implemented for this.
> autoNameResolution option using Dynamic CXF client
> --------------------------------------------------
>
> Key: CXF-6500
> URL: https://issues.apache.org/jira/browse/CXF-6500
> Project: CXF
> Issue Type: Bug
> Components: JAX-WS Runtime
> Environment: Apache CXF 3.0.5
> Reporter: Aditya Chava
> Priority: Critical
>
> Hi There
> I am using JaxwsDynamicClient and I am trying to generate classes for a wsdl
> for which i am gettting " A class/interface with the same name "XXXXXX" is
> already in use. Use a class customization to resolve this conflict." There is
> a way using Apache CXF i.e autoNameResolution but is there a way to achieve
> using dynamic client.
> I tried using
> {code}
> JaxWsDynamicClientFactory factory = JaxWsDynamicClientFactory.newInstance();
> String options [] = {"XautoNameResolution"};
> factory.setSchemaCompilerOptions(options);
> {code}
> but no luck. Please help me in this regard.
> Thanks in Advance
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)