Best practice when working with web services that return objects?

Posted by Raj on Stack Overflow See other posts from Stack Overflow or by Raj
Published on 2010-03-17T11:52:31Z Indexed on 2010/03/17 12:01 UTC
Read the original article Hit count: 241

Hello,

I'm currently working with web services that return objects such as a list of files e.g. File array.

I wanted to know whether its best practice to bind this type of object directly to my front end code for example a repeater/listview or whether to first parse it into my own list of "file class" e.g. customFiles[]

If the web service changes then it will break my front end code, however if I create my own CustomFile class, then i would only need to change my code in one place to fix the issue, but it just seems like a lot of extra work to create the same classes from a web service, i wanted to know what is the best practice for this type of work.

thanks Raj.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about web-services