Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Best way to make Linux Web Services? [closed]

Tags:

linux

service

I have a server that is running Ubuntu Linux Server Edition. I once had a Windows Server and it is easy to create web services using ASP.net on Windows. Linux on the other hand does support ASP.net using Mono, but is isn't as full featured as Windows. So what would be the best way to create xml web services on a linux server box?

Thanks

like image 611
QAH Avatar asked Jun 23 '09 23:06

QAH


People also ask

What command can you use to safely shut down the Linux system immediately?

You can also use the systemctl command to shut down the system. For example, type systemctl halt or systemctl poweroff to achieve similar results to the shutdown command.


1 Answers

A web service can be written in any language. A web service is a program that takes request and returns response (xml or json) via http protocol. You can use a web server like Apache or lighthttpd to handle the http(s) and multithreading for you and write a simple script to do the actual work. The script can be written in anything - php, perl, python, shellscript, cgi c++, free pascal cgi etc.

Of course, You can write everything on your own by using TCP sockets, but this is not your goal I guess. For FOSS I'd do it in php, because it`s easy:http://davidwalsh.name/web-service-php-mysql-xml-json If I want it compiled, i'd use FreePascal as in this guide: http://leonardorame.blogspot.com/2010/02/web-20-programming-with-object-pascal.html

Or If I prefer C++, I'd use QTCreator with this guide: http://libqxt.bitbucket.org/doc/tip/tech-web.html

like image 116
Angel Genchev Avatar answered Sep 19 '22 15:09

Angel Genchev