How to deploy gSOAP web service in Ubuntu?

I have doubts about deploying a web service on Ubuntu. It has been implemented using gSOAP and needs to be deployed, for example. be accessible from websites (which are developed, for example, in ASP.NET).

I am confused with all the themes of CGI, Ubuntu, Apache. So far, I have been able to implement a web service in ASP.NET and deploy it to Microsoft ISS. Other than this, I can also access the gSOAP web service described in WSDL using ASP.NET

What are the steps to deploying my own web service? I have a few more specific questions:

  • Do I need to compile WS as a CGI?
  • Do I need to install Apache in Ubuntu or is the service already enabled?
  • In which specific directory do I need to put the generated code from the WS compilation ("CGI", I think)?

I am new to gSOAP and the entire "world of web services", especially on Ubuntu ...

Thank you in advance!

+4
source share
1 answer

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

No, gSoap is not needed by Apache, gSoap implements a standalone server. The gSoap documentation recommends not using CGI because it is stateless and slow. Instead, you should use the standalone server or the gSoap Apache modules included in the package. I use gSoap as a standalone service with Debian. So I did the following (generalized):

  • Install gSoap: apt-get install gSoap
  • Manually create a header file (e.g. header.h )
  • Create client and server files with soapcpp2 -I /usr/include/gsoap header.h
  • Implemented functions declared in header.h

Good luck.

+8
source

Source: https://habr.com/ru/post/1344926/


All Articles