0

I want to be able to receive a list of Injured objects in my web service method. Below is the java bean created for the object:

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;
    }
}

Then in my web service class I'm just replacing a set of String parameters (the fields used in the java bean) with a List. However, when I compile the new web service class and re-generate the XSD file it doesn't show the new parameter but it removed the replaced String parameters. Is there an annotation I'm missing somewhere? Because it seems it's not recognizing it. The WSDL and XSD files are generated by the enterprise application if that helps clear things.


CRM 2011 - Catch events of subgrid when a new record is inserted or an existing record is modified

I have a subgrid in the CRM 2011 form.

While adding a new record to the subgrid, I want to catch the new record event, or while changing data inside any record, I want to catch it by event.

I see that it is possible to catch the refresh event - but it occurs only if somebody is clicking on the refresh button or by deleting a record.

Why its event is not fired when adding a new record or when modifying an existing record?

I see that the subgrid has events as follows: oninsertnewrecord, onrowupdated, but those events are not fired or cannot be overridden...

4

0 に答える 0