[jboss-dev-forums] [Design of JBoss ESB] - Re: Webservice - SOAP - JAXB Introductions
tfennelly
do-not-reply at jboss.com
Sat Aug 11 13:02:58 EDT 2007
It should be equivalent to:
| @XmlAttribute(required=true) private double value;
|
anonymous wrote :
| without the @XmlTransient tag on getValue() I observed an illegal annotations error indicating that the attribute value and the method getValue() are somehow duplicating eachother as far as JAXB is concerned.
|
Right, this is what I meant by "some unexplainable things" in my last post. I found that this exact issue could be got around by placing the annotation on the method Vs the field. So in JAXB Intros config....
| <?xml version = "1.0" encoding = "UTF-8"?>
| <jaxb-intros xmlns="http://www.jboss.org/xsd/jaxb/intros">
| <Class name="junit.prices.UnitPrice">
| <XmlType name = "UnitPrice"/>
| <Method name="getValue">
| <XmlAttribute name="value" required="true" />
| </Method>
| </Class>
| </jaxb-intros>
|
Have you tried this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073308#4073308
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073308
More information about the jboss-dev-forums
mailing list