1 下载

https://sourceforge.net/projects/gsoap2/files/

2 安装

installing gSOAP on Unix/Linux

Make sure that you have Flex and Bison installed to build the soapccp2 tool:

确保已经安装了Flex和Bison 工具来构建soapccp2工具。

sudo apt-get install flex bison


You may want to install OpenSSL to enable HTTPS for gSOAP clients and servers:

你要安装OpenSSL来为gSOAP客户端和服务端启用HTTPS

sudo apt-get install libssl-dev


Install the gSOAP software on Unix/Linux systems as follows:

在Unix/Linux系统上安装gSOAP软件 ,如下所示:

./configure
make
sudo make install

如有其他问题请访问:
gSOAP Download and Installation

3 简单使用

介绍与概念不再赘述,只贴使用过程。
头文件是要自己按照需要自行定义的,我这里命名为gSoapFun.h

GSOAP工具的简单使用
在终端可以查看soapcpp2的参数
GSOAP工具的简单使用

以生成c文件为例
输入命令:./soapcpp2 -c gSoapFun.h
GSOAP工具的简单使用

生成后的文件不要改动,框架代码已生成。

相关文章:

  • 2021-07-26
  • 2021-12-26
  • 2021-05-02
  • 2021-12-29
  • 2021-11-19
  • 2022-12-23
  • 2021-10-13
  • 2021-12-04
猜你喜欢
  • 2021-08-20
  • 2021-12-22
  • 2021-08-22
  • 2021-04-10
  • 2021-12-07
  • 2021-05-28
  • 2021-09-03
相关资源
相似解决方案