利用CXF框架编写JAX-WS服务的第一要点 编写一个SEI即Service Endpoint Interface接口 和一个POJO 实体类用于作为RPC方法的返回实体类型

 

另一个例子

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "ArrayOfTGMCOME_PURCHASEPLANINFO", propOrder = {
    "tgmcomepurchaseplaninfo"
})
public class ArrayOfTGMCOMEPURCHASEPLANINFO {

    @XmlElement(name = "TGMCOME_PURCHASEPLANINFO", nillable = true)
    protected List<TGMCOMEPURCHASEPLANINFO> tgmcomepurchaseplaninfo;

    /**
     * Gets the value of the tgmcomepurchaseplaninfo property.
     * 
     * <p>
     * This accessor method returns a reference to the live list,
     * not a snapshot. Therefore any modification you make to the
     * returned list will be present inside the JAXB object.
     * This is why there is not a <CODE>set</CODE> method for the tgmcomepurchaseplaninfo property.
     * 
     * <p>
     * For example, to add a new item, do as follows:
     * <pre>
     *    getTGMCOMEPURCHASEPLANINFO().add(newItem);
     * </pre>
     * 
     * 
     * <p>
     * Objects of the following type(s) are allowed in the list
     * {@link TGMCOMEPURCHASEPLANINFO }
     * 
     * 
     */
    public List<TGMCOMEPURCHASEPLANINFO> getTGMCOMEPURCHASEPLANINFO() {
        if (tgmcomepurchaseplaninfo == null) {
            tgmcomepurchaseplaninfo = new ArrayList<TGMCOMEPURCHASEPLANINFO>();
        }
        return this.tgmcomepurchaseplaninfo;
    }

}

猜你喜欢

转载自blog.csdn.net/zy103118/article/details/86648462