Hi All,
I am currently working on an application where in I have to communicate to web services. We have used xmlbeans to create the
java wrapper classes for these webservices exposed functionality.
All scenarios pertain to create and updates. Creates are fine where in I set all the values from our business objects to the xmlbeans representative objects of webservices and pass it on.
For updates I wanted to know if there are any good practices available which I can use. What I want to do is compare the fetched object with changes made by user at the front end. This determination can be carried by using equals method. We plan to override the equals method in our business objects.
Now the second part of passing only the changes. Now while calling the webservice I want to assemble the input objects only with changed attributes.
I am wondering how best can I handle this rather than using if-else constructs.
Do post your thoughts on the same
~Manish