AIR to XFire Web Service

This content continues on

After I have worked hard for trying to use XFire Web service to be the server’s end point of my AIR project. I have realize that XFire will generate complexType’s attribute if you following to declare that serialization class to have getter/setter method for every attribute. like below

class Sample{
public String username; // public accessor for Flex passing value
public String password; // public accessor for Flex passing value

public Sample() { } // required for common web service serialization

public String getUsername() { return this.username; }
public String getPassword() { return this.password; }

public void setUsername( value : String ) { this.username = value; }
public void setPassword( value : String ) { this.password = value; }