locked
asp.net web site communication with desktop application RRS feed

  • Question

  • Hello everyone,

    i would like to communicate between a website and a desktop application. ive done some research and have found several possable solutions but i cant find answers to some questions.

    the two most promising solutions i have found are wcf or web services.

    my question is if i use a web service can i use it for communication or are web services just for being able to use a function hosted on a web server.

    which of these solutions would you recommend and what do you think the pros and cons are of each??

    • Moved by Kristin Xie Friday, February 19, 2016 8:31 AM
    Thursday, February 18, 2016 8:55 PM

Answers

  • this looks like it might not be the solution i was looking for. 

    Does anyone have any other suggestions on how i can communicate between my asp.net website and my windows application

    i basically want a button on my website to trigger an event on my windows application

    The only way you are going to get it to work is use WCF with the Windows solution hosting the WCF service over TCP/IP, and the Web application being the WCF client that is sending a message to the WCF service hosted by the Windows solution to execute an event on the Windows solution.

    Again, you are posting to the wrong forum. This is the C# forum that deals with C# issues and not what you are posting about, which you can discuss in the WCF forum, a link you have been given. 

    • Marked as answer by matthewhnn Friday, February 19, 2016 5:39 PM
    Thursday, February 18, 2016 10:52 PM

All replies

  • my question is if i use a web service can i use it for communication or are web services just for being able to use a function hosted on a web server.

    There is legacy Web service using AXMS the old Web service, there is WCF Web service and there is ASP.NET WebAPI a restful Web service.

    http://www.codeproject.com/Articles/515253/Service-Oriented-Architecture-and-WCF

    http://www.dotnet-tricks.com/Tutorial/webapi/VG9K040413-What-is-Web-API-and-why-to-use-it-?.html

    which of these solutions would you recommend and what do you think the pros and cons are of each??

    Ask in the correct forums

    http://forums.asp.net/28.aspx/1?WCF+ASMX+and+other+Web+Services

    http://forums.asp.net/1246.aspx/1?Web+API

    Thursday, February 18, 2016 9:54 PM
  • this looks like it might not be the solution i was looking for. 

    Does anyone have any other suggestions on how i can communicate between my asp.net website and my windows application

    i basically want a button on my website to trigger an event on my windows application

    Thursday, February 18, 2016 10:45 PM
  • this looks like it might not be the solution i was looking for. 

    Does anyone have any other suggestions on how i can communicate between my asp.net website and my windows application

    i basically want a button on my website to trigger an event on my windows application

    The only way you are going to get it to work is use WCF with the Windows solution hosting the WCF service over TCP/IP, and the Web application being the WCF client that is sending a message to the WCF service hosted by the Windows solution to execute an event on the Windows solution.

    Again, you are posting to the wrong forum. This is the C# forum that deals with C# issues and not what you are posting about, which you can discuss in the WCF forum, a link you have been given. 

    • Marked as answer by matthewhnn Friday, February 19, 2016 5:39 PM
    Thursday, February 18, 2016 10:52 PM
  • I left out one other forum.

    http://forums.asp.net/

    Thursday, February 18, 2016 10:55 PM
  • thanks
    Friday, February 19, 2016 5:39 PM