Asynchronous messaging with web service
-
Forgive me if this is a silly or badly formulated question but I'm a newbie in .NET programming. I need an easy way to exchange asynchronous messages between a Windows service (or client application) and a Web service. Up till now I've considered (but still not implemented and tested) the following approaches: - Using a TCP socket. Is there any standardized way in .NET to send/receive messages using this link? For example, using XML or SOAP as a standard encapsulation format for data. - Using MSMQ. Is this a valid approach for this kind of applications? I could not find many information. Do you have any suggestions and/or links to good reference material? Regards, Andrea
-
Forgive me if this is a silly or badly formulated question but I'm a newbie in .NET programming. I need an easy way to exchange asynchronous messages between a Windows service (or client application) and a Web service. Up till now I've considered (but still not implemented and tested) the following approaches: - Using a TCP socket. Is there any standardized way in .NET to send/receive messages using this link? For example, using XML or SOAP as a standard encapsulation format for data. - Using MSMQ. Is this a valid approach for this kind of applications? I could not find many information. Do you have any suggestions and/or links to good reference material? Regards, Andrea
Have a look at WCF. It has much better programmability than simple web services. One article that could help you is: Synchronous and Asynchronous Operations[^]. Hope this helps, Mika
The need to optimize rises from a bad design. My articles[^]