AIR to XFire Web Service

This content continues on http://flexblog.teerasej.com

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

}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: