locked
Common .NET web module development RRS feed

  • Question

  • User872956567 posted

    I want to create a common web module which act as a service to both .NET desktop application as well as web application (php, asp etc). Its main task is to get the input parameter from client page (can be webpage or desktop app), and do some calculations and provide the output to requested party (webpage/application). I have no experience implementing similar kind of environment and any help will be appreciated. I am using windows server and desktop application is developed in C#. Just wanted to create a common module platform for both environment. Creating a local copy of web hosted module for desktop application is preferred as it act as a local copy and only update when the user wants it.

    Tuesday, April 7, 2015 8:15 PM

Answers

  • User-824764785 posted

    Create a WebSite or WebApplication project in visual studio, add a WebSevice into it to provide the data to other applications including desktop as well as mobile.

    Create a Windows Forms Application Project for desktop application, Right Click on Project -> Advanced -> Add Web Reference -> Url   (provide the webservice url you just have created in web site project).

    This way you will be able to setup a communication between desktop as well as website projects

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, April 9, 2015 4:26 PM
  • User1066278571 posted

    Create a Web API service for this and you can host it in the IIS or as a windows service.  You don't need to host it twice then, and all applications can use this backend.

    greetings Damien

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, April 12, 2015 4:49 AM

All replies

  • User-824764785 posted

    Create a WebSite or WebApplication project in visual studio, add a WebSevice into it to provide the data to other applications including desktop as well as mobile.

    Create a Windows Forms Application Project for desktop application, Right Click on Project -> Advanced -> Add Web Reference -> Url   (provide the webservice url you just have created in web site project).

    This way you will be able to setup a communication between desktop as well as website projects

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, April 9, 2015 4:26 PM
  • User1066278571 posted

    Create a Web API service for this and you can host it in the IIS or as a windows service.  You don't need to host it twice then, and all applications can use this backend.

    greetings Damien

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, April 12, 2015 4:49 AM