Hi,
I am trying to consume an XML over HTTP service which does not understand the
concept of namespaces and I am using the JaxWsProxyFactoryBean class for that.
Also, the names of fields of both request and response can be identical.
The default binding implementation relies on the JAXB framework and the
framework cannot expose a web service properly (the factory.create() throws an
exception “Two classes have the same XML type name "{http://company.blabla
/}individual-nameType". Use @XmlType.name and @XmlType.namespace to assign
different names to them at this point
JAXBContext.newInstance(classes.toArray(new Class[classes.size()]), map);)
unless I specify namespaces to calm down JAXB.
Could anyone possibly recommend the desirable approach:
1. Create a custom interception which would erase namespace specific
information before the request gets submitted along the chain.
2. Create a custom DataBinging class and inherit it from
AbstractDataBinding
3. Do anything else to get it done.
Any suggestion would be greatly appreciated.
Kind regards,
Aleks