Arg, the problem I had was that my parameters for the XmlAdapter were
reversed.  I now have it as

  public class QueryParametersAdapter extends
XmlAdapter<QueryParametersList, HashMap<String, String[]>>

and everything works fine.  After I clean this up I'll follow up to this
message with a link to this very simple project.

Thanks for the quick response!

Chris




dkulp wrote:
> 
> 
> If you read the javadoc for the XmlAccessType class, (I just did, I 
> didn't realize this either), even private fields will be grabbed if they 
> have a JAXB annotation on them. 
> 
> Thus, you might want to change to:
> XmlAccessType.FIELD
> to only look at the field.
> 
> Alternatively, take the @XmlJavaTypeAdapter annotation off the field and 
> stick it on the getter.   Thus, the field won't have any jaxb 
> annotations on it.   JAXB SHOULD allow it to work that way.
> 
> Dan
> 
> 
> -- 
> J. Daniel Kulp
> Principal Engineer, IONA
> [EMAIL PROTECTED]
> http://www.dankulp.com/blog
> 
> 

-- 
View this message in context: 
http://www.nabble.com/%40XmlJavaTypeAdapter-with-HashMap-creates-two-fields-on-SOAP-object-tp16038742p16039193.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to