Hi, Any chance to provide a wsdl, xsds and code snapshot how you create a client? Which CXF version are you use?
Cheers, Andrei. > -----Original Message----- > From: Sergio E Felix Aparicio [mailto:a...@me.com] > Sent: Freitag, 28. Dezember 2012 04:24 > To: users@cxf.apache.org > Subject: Re: JaxWsDynamicClientFactory throws IllegalArgumentException > > Anyone? > > > On Dec 23, 2012, at 2:59 PM, Sergio E Felix Aparicio <a...@me.com> wrote: > > > > > 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? > >