I am currently working on a wcf service that executes some queries in a database and returns data to the client. The user has entered the identifier of what he wants to see in the text box. It can be a customer identifier, a product identifier, an order identifier, or something else. The server search method tries to find the identifier in the client table. If he is not there, he goes through the table of products, etc., until he finds it.
When accessing the server, it is impossible to determine what the user is looking for. As far as I know, I need to specify the development time of the return type, otherwise the serialization of the objects will not work. The only thing I can come up with is a helper class containing all possible objects and returning it from wcfservice, any better ideas?
Additional Information:
We use wsHttpBinding and Linq-To-Sql. The database is outdated and other software is being used, so the data cannot be changed.
source
share