I have developed a C# windows application with Visual Studio 2013. It runs on a server and communicates with some devices around the world through a Apache server(txt files which contains commands). Now I would need to create a web page(accessible via the internet) which allows my customers to log in and change some parameters which are in my windows application.What would be the best way to do it?
Thank you in advance for your help!
Create a web page to save customer settings in database
Expose a webservice or Web API that can be called from the desktop application in a different thread to access the customer data from the web
Related
so our company wrote an accounting app,in windows,using c# for a certain company that ordered an accounting application.
after a while,they requested an android app that can communicate with the server and request or send data from or to the database that the windows form application uses,which uses SQLExpress 2014.
note that : the application that runs on the android platform may need run on more than one client at any given time.
AND
the android app will be native.
my main question is this : whats the best technology to use?
do i HAVE to use web services ?
well to do that i have to install IIS on the windows client which is
all im trying to avoid,because i have a setup and the program has been
mass produced within the city so i cant just take back every
customer's product and add iis setup procedures to the setup...if u
know what i mean
Not true. Since WCF days, there's an in-process option called XXX self-host which is a tiny web server written in C# and started along with your process using code.
Currently your best web should be developing your Web services using OWIN/Katana self-host and implement your RESTful service running on a Windows service (did you know about TopShelf?).
Check this interesting MSDN article to learn more about self-hosting a Web API into a Windows Service using Topshelf.
TL;DR
Your best bet here would be creating a Windows service which might be installed along with the Windows application or in some customer's server machine and host this way your RESTful Web service using ASP.NET Web API.
This is easy to deploy and distribute, and your customer won't require an IIS installed to host web services.
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.
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
I have finished developing a Web application using Silverlight 5 (hosted in an ASP.Net project) with Visual Express 2013. I use SQL Server 2012 for my database, and I want to send my application to My Friend in order to test it.
Can I create a DEMO and send him to test it, or should I send him the solution (.SLN) or what?
How can I show him my application without demanding him to compile the project?
Thanks you !
You need to give him access to the server which serves up the web page which hosts the Silverlight application.
Why?
If the app is accessing a database, how is your friend going to be able to have the app access the database to get the proper data?
Hence you need to publish your Silverlight application to a location which 1) has access to the database and 2) allows for your friend to bring up the web page which hosts the Silverlight app.
Otherwise if you give him the solution, he will also need to create a database and you need to give him a backup of the database as well and make sure the access parameters to his database server are the same.
I have developed a web application in C# and an android app. Web app(c#) is acting as a server and attached to SQL server 2008 R2 while android is acting as client and it communicates with web app(C#) via bluetooth( bluetooth coding is done in c# winforms).
Now one thing I know is that android cannot directly communicate with SQL database for it I have to utilize web service. I wanted to authenticate my android app login/register from web app(C#)
My winform(C#) in which bluetooth(using feet32 library) functionality is implement should act as an agent between client(android) and server(C#).
Now I wanted to know that:
How my winform application will act as an agent to communicate with client and server both and read/send data to and fro.
If I need web service to implement then in which application I should write in webapp or winform?
I wanted to authenticate my android app login/register from web app(C#). I f I have to write for it webservice then whether I will write it in web app or winform?
I am just a beginner and its my final project. Please help me to understand the complete scenario and my knowledge is too little and also if there is any good tutorial for any of these functionality please do mention the link ..
Thanks
Edited: After little Research I come to know about SOAP http web service, What you guys think where to implement this web service according to above questions.
To establish communication between two devices by using Web services you don't have to use winform application.
You can establish a connection via web services, just create a new ASP.NET project using visual studio then add a Web service and folloe the template it gives you.
Right click on the service, click on view in browser, verify there is no any error. The address of this browser is the address of your service just connect to this service from the second device.
Please check out this guideline: CodeProject Web Service
Try ICE, It got excellent cross platform support and is open source. I have been using it for last four years to communicate between c++ and C# applications.
ICE for .Net
ICE for Android
What i want to do is running a windows service (c#) which gathers some information which i want to display in my asp.net web forms site. The windows service has a timer so that code can be run periodically.
The purpose of my application is to manage windows services (restart, check if they are stuck etc.). Furthermore there is the exact same monitoring service on a different server which checks the other one (monitoringService1 monitors monitoringService2 + some normal services and vice versa). This is why the monitoringService is a service too.
Can you guys give me any hints how i can pass my data from the win service to my web forms?
Thank you in advance!
best regards,
r3try
You can store the data from the results of your Windows Service in a log or a database, then read the same data from your asp-net application. I would recommend the database way.