如何在 Ubuntu 中部署 gSOAP Web 服务?
我对 Ubuntu 中 Web 服务的部署有疑问。它是使用 gSOAP 实现的,并且应该进行部署,例如可以从网站(例如在 ASP .NET 中开发)进行访问。
我对整个 CGI、Ubuntu、Apache 主题感到困惑。到目前为止,我能够在 ASP .NET 中实现 Web 服务并将其部署在 Microsoft ISS 上。除此之外,我还可以使用 ASP .NET 访问 WSDL 中描述的 gSOAP Web 服务
部署我自己的 Web 服务的步骤是什么?我有一些更具体的问题:
- 我必须将 WS 编译为 CGI 吗?
- 我必须在 Ubuntu 中安装 Apache 还是该服务已启用?
- 我必须将 WS 编译生成的代码(我猜是“CGI”)放置在哪个特定目录中?
对于 gSOAP 和整个“Web 服务世界”,我是个新手,尤其是在 Ubuntu 中......
提前非常感谢!
I have a doubt concerning the deployment of a Web Service in Ubuntu. It was implemented using gSOAP and it should be deployed, e.g. be accessible from websites (which are developed in e.g. ASP .NET).
I got confused with the whole CGI, Ubuntu, Apache topics. Until now I was able to implement a Web Service in ASP .NET and deploy it on Microsoft ISS. Other than that I can also access a gSOAP Web Service described in a WSDL, using ASP .NET
What are the steps to deploy my own Web Service? I have some more specific questions:
- Do I have to compile the WS as CGI?
- Do I have to install Apache in Ubuntu or the service is already enabled?
- In which particuar directory do I have to place the generated code from the WS compilation ("CGI" I guess)?
I am quite a newbie with regard to gSOAP and the whole "Web Service world", especially in Ubuntu...
Thank you very much in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
不,gSoap 不需要 Apache,gSoap 实现了一个独立服务器。 gSoap 文档 建议不要使用 CGI,因为它是无状态的并且慢的。相反,您应该使用独立服务器或包中包含的 gSoap Apache 模块。我使用 gSoap 作为 Debian 的独立服务。因此,我做了以下操作(总结):
apt-get install gSoap
header.h
)创建客户端和服务器文件>soapcpp2 -I /usr/include/gsoap header.h
header.h
中声明的函数祝你好运
No, gSoap doesn't need Apache, gSoap implements a standalone server. The gSoap documentation recommends not to use CGI because it's stateless and slow. Instead you should use the standalone server or the gSoap Apache modules included in the package. I use gSoap as standalone service with Debian. Therefore I did following (summarized):
apt-get install gSoap
header.h
)soapcpp2 -I /usr/include/gsoap header.h
header.h
Good luck