How to deploy a gSOAP Web Service in Ubuntu?

不打扰是莪最后的温柔 提交于 2019-12-05 15:30:06

Do I have to compile the WS as CGI? Do I have to install Apache in Ubuntu or the service is already enabled?

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):

  1. Install gSoap: apt-get install gSoap
  2. Manually created the header file (e.g. header.h)
  3. Create the client and server files with soapcpp2 -I /usr/include/gsoap header.h
  4. Implemented the functions declared in header.h

Good luck

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!