Hey guys! I've been struggling to get the JaxWsDynamicClientFactory to correctly parse a client's WSDL. I always get a IllegalArgumentException. I've started debugging and found that somehow the problem goes back to the JAXBDataBinding.
It appears that the method: createWrapperHelper fails to create a wh object and then attempts to create it again: if (wh == null) { wh = new JAXBWrapperHelper(wrapperType, setMethods, getMethods, jaxbMethods, fields, objectFactory); } The JAXBWrapperHelper fails again since the jaxbMethods is filled with nulls and its getPartObject(..) method always returns the full complex object. When the helper tries to call the setter methods to create the wrapper object the IllegalArguementException is thrown. What causes CXF to start to create a wrappable object? What specifically happens in the WSDL that it makes Apache CXF try to create a wrapper for the user owned object? Without going to NDA territory the WSDL is super simple: a "complex" object with 5 String attributes. The object is defined in a separate XSD document. I've tried to use the WSDL2Java and the resulting POJO is what you would expect. A single class with 5 String attributes. Help?