[
https://issues.apache.org/jira/browse/CXF-1930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12652900#action_12652900
]
Daniel Kulp commented on CXF-1930:
----------------------------------
OK. I was on the right track, but not quite. For anonymous types, you have
to generate the XmlType annotation, but set the name attribute to an empty
string.
av0 = cw.visitAnnotation("Ljavax/xml/bind/annotation/XmlType;", true);
if (!anonymous) {
av0.visit("name", wrapperElement.getLocalPart());
av0.visit("namespace", wrapperElement.getNamespaceURI());
} else {
av0.visit("name", "");
}
av0.visitEnd();
Will commit once tests done running.
> JAX-WS + JAXB does not honor the service factory isAnonymousWrapperTypes()
> flag
> -------------------------------------------------------------------------------
>
> Key: CXF-1930
> URL: https://issues.apache.org/jira/browse/CXF-1930
> Project: CXF
> Issue Type: Bug
> Components: JAXB Databinding
> Affects Versions: 2.1.3
> Reporter: Valdemar Mejstad
>
> I'm having trouble getting JAX-WS with JAXB databinding to work with the
> configuration option for using anonymous wrapper types:
> JaxWsServerFactoryBean serverFactory = new JaxWsServerFactoryBean();
> // set address, service class etc...
> serverFactory.getServiceFactory().setAnonymousWrapperTypes(true);
> serverFactory.create();
> Doing this doesn't result in the expected results (there are still separate
> named complex types besides the elements in the WSDL).
> It seems to work fine with the simple frontend + aegis databinding.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.