WCF help
-
I am trying to use WCF to transfer objects' data between two machines. I don't care whether I use TCP or HTTP for the transfer, but the examples I have seen use TCP, so I would like to use that. My question is this: I host the service in my Windows app using the ServiceHost. How do I get my object's data into the service itself so that when a client uses the service, it returns the correct data? For example, I need to transfer a schedule object, a session object, and a ushort number. The schedule and session objects contain several items including List items as well. I guess I don't know how to setup the servicehost in my windows app so that what I want to happen will occur. The examples and websites I have looked at have not helped much. They mostly focus on the client sending a piece of data to the server, and then the server just sending back a string that it makes within the service object's data contract itself. Thanks, David