0

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 copy of web module and only update when the user wants it.

sk3145
  • 174
  • 18
  • I wouldn't recommand asmx for webservices anymore, WCF is a better choice by far , you can host it almost anywhere it supports http, tcp or even websockets – Coder1409 Apr 07 '15 at 12:46
  • Can you provide me any code samples that meet the above mentioned requirements using WCF. – sk3145 Apr 08 '15 at 00:11
  • where will you host your application , and what protocol do you want to use , http, https, tcp..;etc? – Coder1409 Apr 08 '15 at 08:09
  • I will planning to host it under http protocol. – sk3145 Apr 09 '15 at 01:13
  • just follow this tutorial for a simple application http://www.codeproject.com/Articles/566691/WCF-From-a-Beginners-perspective-a-Tutorial – Coder1409 Apr 09 '15 at 07:58

1 Answers1

1

The solution to your question is actually to create a Web Service here's how you can create a Web Service for visual studio

Create a asmx web service in C# using visual studio 2013

Your web service will have a method that accepts a DataSet to fetch the input of the user from the WebPage/Application(clientside) and will also have a method where it will pass the input it fetched (most appropriate is a DataSet) to the WebPage/Application you want.

P.S.
You need to Add Service Reference to the Project in the ClientSide WebPage/Application

Community
  • 1
  • 1
JC Borlagdan
  • 3,318
  • 5
  • 28
  • 51
  • Than you for your suggestion. But i think WCF is better in terms of providing web services but I have no idea implementing above mentioned service using WCF. – sk3145 Apr 08 '15 at 00:10
  • @sk3145 I can't help you with WCF because I haven't used it before, but with your problem, I was able to do it actually by using Web Service in ASP.Net. The following link might help you with WCF http://www.codeproject.com/Articles/139787/What-s-the-Difference-between-WCF-and-Web-Services – JC Borlagdan Apr 08 '15 at 01:19