Hi, I am new to .net so excuse me.
I need to create mutiple webservices (for multiple clients). The webmethods
would essentially have the same parameters except for the return values. say
they pass us an id, then depending on webserice called I might need to return
values, if client A calls methodA then just return name and phone but for
client B calling methodA return name,phone and adress.. I want some
reuasability in code (since I read the same data from database each time but
some other processing differ) and want to return the output as custom object.
I have been trying to use abstract class to define all the webmethods.. not
very successful ..
If I create a custom object having all possible fields is it possible to
hide the non-required fields (i.e. Address when client A access the service
for them), should I return XMLDocument..
what is the best design pattern for webservice..
I need to create mutiple webservices (for multiple clients). The webmethods
would essentially have the same parameters except for the return values. say
they pass us an id, then depending on webserice called I might need to return
values, if client A calls methodA then just return name and phone but for
client B calling methodA return name,phone and adress.. I want some
reuasability in code (since I read the same data from database each time but
some other processing differ) and want to return the output as custom object.
I have been trying to use abstract class to define all the webmethods.. not
very successful ..
If I create a custom object having all possible fields is it possible to
hide the non-required fields (i.e. Address when client A access the service
for them), should I return XMLDocument..
what is the best design pattern for webservice..
Comment