English 中文(简体)
在Ubuntu上创建一个简单的Web服务。 [已关闭]
原标题:Create a simple web services on Ubuntu [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.


更新问题,仅通过

Closed 8 years ago.

I m a newbie in web services. How can I develop a simple one on my Ubuntu box? Is there any packages I need to install first?

问题回答

嗯,既然你没有说是什么语言甚至是什么网络服务,试试这个:

sudo apt-get install apache2
sudo apt-get install php5
sudo apt-get install libapache2-mod-php5
sudo /etc/init.d/apache2 restart

前往/var/www/,创建一个名为hello.php的文件。

<?php
    echo "<webservice><hello>world</hello></webservice>";
?>

前往http://localhost/hello.php,你已经有一个返回XML的Web服务。这就是它们所有的工作方式(无论你选择哪种语言,ASP.NET都更擅长隐藏它)。





相关问题
IIS 6.0 hangs when serving a web-service

I am having issues with one of our web-services. It works fine on my development machine (win XP) whether I host it as a separate application or using cassini from Visual studio. Once I deploy on the ...

ASP.net web services

I am using a web service which sets the Thread.CurrentPrincipal object while logging in and soon later when another webmethod of the same web service accesses Thread.CurrentPrincipal, its different/...

Unity Container Disposing and XML Web Service

I am registering some wrapers over un-managed objects in container. How can I dispose of them at the end of the container s lifetime? Please bear in mind I have an XML Web service.

SharePoint : web service permission error

I have a sharepoint site, and I am calling a standard sharepoint web service. I create the web service request like this : wsDws.Url = this.SiteAddress + @"/_vti_bin/Dws.asmx"; When I use ...

热门标签