views:

1734

answers:

10

Hello. 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

A: 

There's a plethora of materials available with a simple search for "PHP Web Service" on Google. I'm not really sure what language you're using or what type of service you want to set up so I went with PHP Soap.

http://www.onlamp.com/pub/a/php/2007/07/26/php-web-services.html

Spencer Ruport
it's obvious from the question that he's using asp.net
Charlie Somerville
It's obvious your reading comprehension sucks.
Spencer Ruport
+2  A: 

Linux web development is actually a world of difference from Windows web development. In leau of the bureaucracy of "applications" and "web services" we have scripts you can invoke via Apache, and if you want to get more advanced, daemons that can handle TCP/IP connections.

If you want to use something specific like SOAP, you should mention it in there, but as far as I know, Linux web development isn't service-based like Windows is.

MiffTheFox
Could you expand on "Linux web development isn't service-based like Windows is"?
Spencer Ruport
You don't have to write a service, start the service, monitor the service, take it down to modify it, etc. Linux web development is typically done through a series of scripts in PHP, mod_perl, etc. that get executed when a HTTP/HTTPS request is made and return the content. If you want to get more advanced then that, you could write a custom apache module or daemon in C, but other then that, there's no support for the "pseudo-application" thing Windows development has going for it.
MiffTheFox
This answer has opportunities in use of the term service. A web service has absolutely no relation by definition to a Windows Service although a windows service may be the thing that provides that web service. Sorry... that sentence sucks but it is accurate.
ojblass
A: 

There's a lot of industry standard specification and implementation in Java dealing with all aspects of server side web programming. Start off by an open source implementation such as Apache Tomcat and/or any of http://ws.apache.org/

nos
+5  A: 

If you want to use ASP.net then use a windows server.

If you have to use Linux for some reason then you need to learn another language to work properly in the linux environment.

Derek Organ
A: 

I guess the best answer depends a bit on what you really need, but one option is to use any of the recent web frameworks, such as Rails, CakePHP, or Django, which allow you to easily define database backed models, and then compose dynamic sites. Turnaround on these frameworks can be measured in minutes for simple sites.

TokenMacGuy
+1  A: 

There are many ways to do this, but given your ASP.NET background why not give the MonoDevelop IDE a go, it has matured a lot and will continue to do so.

Another option is using Eclipse (Java or PHP).

Si
A: 

Although it is based on a commercial product the following is an excellent primer to assist you in understanding how you would develop a Java based web service on Linux. If you find a similar tutorial based on free software please share it.

ojblass
A: 

I came across the same problem recently. I wanted a thin layer to turn my SQL database into a webservice with JSON or XML support. All I wanted to do was to have to write the SQL statements... it seemed a pretty reasonable thing to ask.

However, all the options I found involved installing some sort of enterprisy "do everything" solution. So I ended up writing some "glue" which took SQL statements defined in XML "dataset" definitions, and served a simple, RESTful web service.

I documented my approach here:

http://www.nsquared.co.nz/jarvis-docs/jarvis_guide.odt

If you want to use the framework, I can give you a tarball of the latest release. It's used in three or four small applications currently, 2 ExtJS, 1 Flex, and 1 Asp.Net.

the.jxc
A: 

"So what would be the best way to create xml web services on a linux server box?"

A web framework like Turbogears, Django, Grok, Repoze.BFG, WebPy or such.

Lennart Regebro
A: 

Depends mostly on the web server and web language you run on Linux more than anything else. If you're using Apache Tomcat, look at Axis2 (http://ws.apache.org/axis2/) and CXF (formerly XFire at http://cxf.apache.org/) JBoss has web service support built-in (JBossWS) so it's fairly easy to use and since it's a JEE server, it uses standard web service code that is portable.

You can also write web services using PHP if you use that on your web server. Apache = IIS PHP or JEE or JSP or JSF = ASP.Net There are a lot more choices in Linux land...

ken