xfire+spring 生成的客户端代码的实体bean
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "EIDUser", propOrder = {
"password",
"regTime",
"username",
"visible"
})
public class EIDUser { @XmlElementRef(name = "password", namespace = "http://user.bean.itdos.net", type = JAXBElement.class)
protected JAXBElement<String> password;
protected XMLGregorianCalendar regTime;
@XmlElementRef(name = "username", namespace = "http://user.bean.itdos.net", type = JAXBElement.class)
protected JAXBElement<String> username;
@XmlElementRef(name = "visible", namespace = "http://user.bean.itdos.net", type = JAXBElement.class)
protected JAXBElement<Boolean> visible;
xfire 生成的客户端代码的实体bean@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Customer", propOrder = {
"email",
"name",
"phone"
})
public class Customer { @XmlElement(required = true)
protected String email;
@XmlElement(required = true)
protected String name;
@XmlElement(required = true)
protected String phone;
各位大牛 谁知道怎么回事 什么才能让spring+sfire 生成的代码和 xfire一样
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "EIDUser", propOrder = {
"password",
"regTime",
"username",
"visible"
})
public class EIDUser { @XmlElementRef(name = "password", namespace = "http://user.bean.itdos.net", type = JAXBElement.class)
protected JAXBElement<String> password;
protected XMLGregorianCalendar regTime;
@XmlElementRef(name = "username", namespace = "http://user.bean.itdos.net", type = JAXBElement.class)
protected JAXBElement<String> username;
@XmlElementRef(name = "visible", namespace = "http://user.bean.itdos.net", type = JAXBElement.class)
protected JAXBElement<Boolean> visible;
xfire 生成的客户端代码的实体bean@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Customer", propOrder = {
"email",
"name",
"phone"
})
public class Customer { @XmlElement(required = true)
protected String email;
@XmlElement(required = true)
protected String name;
@XmlElement(required = true)
protected String phone;
各位大牛 谁知道怎么回事 什么才能让spring+sfire 生成的代码和 xfire一样
解决方案 »
- 关于SocketException Socket Closed 这个异常(UDP)
- linux下安装j2sdk-1_4_2_12-linux-i586.bin,出现can't find /usr/bin/sum to do checksum
- 标记 <TBODY> 与 <BODY> 有什么区别啊
- 图片移位问题
- 【正则表达式】String.split()时以“:”分隔,但是可以排除“?:”
- poolman 怎么使用啊
- 截取字符串中的img地址问题
- 求操作*.pdf的包
- 请问:如何为float型数据加1?
- 急!那有sdk1.2.2下载?
- 怎么import import static net.mindview.util.SwingConsole.*;这个包?
- j2se swing做的一个程序,怎么发布到tomcat中
@XmlElementRef(name = "visible", namespace = "http://user.bean.itdos.net", type = JAXBElement.class)
protected JAXBElement<Boolean> visible;
@XmlElement(required = true)
protected String phone;两者区别
@Retention(value=RUNTIME)
@Target(value={FIELD,METHOD})
public @interface XmlElementRefMaps a JavaBean property to a XML element derived from property's type.Usage@XmlElementRef annotation can be used with a JavaBean property or from within XmlElementRefsThis annotation dynamically associates an XML element name with the JavaBean property. When a JavaBean property is annotated with XmlElement, the XML element name is statically derived from the JavaBean property name. However, when this annotation is used, the XML element name is derived from the instance of the type of the JavaBean property at runtime.