Web服务方法List <object>参数</object>

时间:2015-03-26 07:55:42

标签: java web-services soap xsd maximo

我希望能够在我的网络服务方法中收到受伤对象列表。下面是为对象创建的java bean:

public class Injured implements Serializable
{
    private String name;
    private String number;
    private String age;
    private String status;
    private String injurytype;
    private String death;
    private String gender;
    private String nationality;
    private String injuredtype;
    private String file;
    private String rank;

    public Injured ()
    {
    }

    //Getters
    public String getName()
    {
        return this.name;
    }
    public String getNumber()
    {
        return this.number;
    }
    public String getAge()
    {
        return this.age;
    }
    public String getStatus()
    {
        return this.status;
    }
    public String getInjuryType()
    {
        return this.injurytype;
    }
    public String getDeath()
    {
        return this.death;
    }
    public String getGender()
    {
        return this.gender;
    }
    public String getNationality()
    {
        return this.nationality;
    }
    public String getInjuredType()
    {
        return this.injuredtype;
    }
    public String getFile()
    {
        return this.file;
    }
    public String getRank()
    {
        return this.rank;
    }

    //Setters

    public setName (String s)
    {
        this.name = s;
    }
    public setNumber (String s)
    {
        this.number = s;
    }
    public setAge (String s)
    {
        this.age = s;
    }
    public setStatus (String s)
    {
        this.status = s;
    }
    public setInjuryType (String s)
    {
        this.injurytype = s;
    }
    public setDeath (String s)
    {
        this.death = s;
    }
    public setGender (String s)
    {
        this.gender = s;
    }
    public setNationality (String s)
    {
        this.nationality = s;
    }
    public setInjuredType (String s)
    {
        this.injuredtype = s;
    }
    public setFile (String s)
    {
        this.file = s;
    }
    public setRank (String s)
    {
        this.rank = s;
    }
}

然后在我的Web服务类中,我只是用List替换一组String参数(java bean中使用的字段)。但是,当我编译新的Web服务类并重新生成XSD文件时,它不显示新参数,但它删除了替换的String参数。是否有我在某处遗漏的注释?因为它似乎没有认识到它。 WSDL和XSD文件由企业应用程序生成,如果这有助于清除事物。

0 个答案:

没有答案