> -----Original Message----- > From: James Carr [mailto:[email protected]] > Sent: Monday, October 24, 2011 12:00 PM > To: [email protected] > Subject: JAXBElement<?> in generated java classes > > Hi, > > We've been using wsdl2java to generate our java classes for a > wsdl-first webservice called by salesforce and one annoyance is that > all the class members are of type JAXBElement<String>. Is there > someway to override this behavior and make them the generic type of > the JAXBElement? I'd like to use these as simple properties rather > than calling "getCity().getValue()" all the time. :)
Typically, when I've seen JAXBElement<whatever> types produced, it's due to a suboptimal schema definition. Specifically, if you're using anonymous types.
