Is it ok to use sockets to exchange data between web application and windows application
if i used MSMQ is it true that application has to be running under microsoft system.
I want the web application to send message to windows application and gets the response back

thanks

Is it ok to use sockets to exchange data between web application and windows application

Define "Web Application"

if i used MSMQ is it true that application has to be running under microsoft system.

Yes

I want the web application to send message to windows application and gets the response back

Without describing "web application" a bit more I don't know if you can even do this or not.
Web Application typically refers to a website written in a dynamic language, C#/ASP.NET, PHP, RoR etc...
in which case, no.

Do you mean a Web Service? If so, this is entirely possible, but everything should be client driven. The service shouldn't arbitrarily call out to presumed clients. This is Bad™

It's an e-voting system , i want to exchange messages between servers. i want the voting server which is an asp.net application to send message to other windows applications and receive response. what is the best method to achieve this

Thanks for reply

Re-write; don't use ASP.NET for a server.

Switch to using WCF and call-backs. Use the service model to communicate between clients and service. You callbacks can be triggered by other clients. That's perfectly reasonable.

If your really must use ASP.NET, then I suggest posting on their forum as they will be able to help you better than I.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.