Apr 22, 2011 04:13 PM|r_nassabeh|LINK
Your'e welcome jastoh
Module B can return anything to mdule A including DataSets, DataTables, generic lists of custom business entities (usually called DTO or Data Transfer Objects) to module A. Technically speaking any Serializable class can be used as the return data type.
Will it also work the same way if in Module A I create a separate thread to call the web service (Module B)
Not exactly. Both models are asynchronous, both speed up UI response and both need some effort to synchronize the results. Bu a thread runs on the same machine as module A and if it is CPU intensive then it will decrease performance which will affect this
module, but if you go the web service way, module B can be deployed on another machine and the overall performance and scalability will be better.