cxf WebService中如何设定xml中返回值的节点信息

@XmlRootElement(name="ContractRoot")
public class ContractRoot {

private TcpCont tcpCont;

private SvcCont svcCont;
@XmlElement(name="TcpCont")
public TcpCont getTcpCont() {
return tcpCont;
}
public void setTcpCont(TcpCont tcpCont) {
this.tcpCont = tcpCont;
}
@XmlElement(name="SvcCont")
public SvcCont getSvcCont() {
return svcCont;
}
public void setSvcCont(SvcCont svcCont) {
this.svcCont = svcCont;
}
}

你可能感兴趣的:(WebService)