0

我正在实现 C++ Web 服务。我已经安装了 gsoap,因为我发现它流行的 c++ web 服务工具包。但是,我在使用 gsoap 时有点困惑。

基本上我有现有的 c++ 代码,我想将它用作 web 服务。我从 gsoap 阅读了教程,其说明如下:

1) use the following command and generate the header file with a wsdl file (im using the sample proj "hello" from gsoap):
wsdl2h -o -s h.h h.wsdl

2) with the hello.h, i run the following command to generate a lists of files as follows:
soapcpp2 hello.h

这会生成一个文件列表:RECEV.log、Service.hello.req.xml....soapC.cpp、soapClient.cpp、soapClientLib.cpp、soapH.h、soapServer.cpp、soapServerLib.cpp、soapStub.h、测试日志

看来我必须首先从 wsdl 文件生成一个 c++ 头文件。但是如果我有现有的项目与现有的 .h 和 .cpp 文件。我怎样才能把它们变成一个网络服务?

4

0 回答 0