gsoap使用示例
来源:互联网 发布:网络几分钟断一次 编辑:程序博客网 时间:2024/06/05 01:11
- download gsoap_2.8.33.zip https://sourceforge.net/projects/gsoap2/files/gSOAP/
Looking for the latest version? Download gSOAP 2.8.33 stable (24.1 MB) - unzip gsoap_2.8.33.zip // 解压gsoap_2.8.33.zip
- cd gsoap-2.8
编译生成 soapcpp2和wsdl2h这2个工具。
打开 INSTALL.sh
本机编译(参考35~44行):
To do so, use the command line to run ‘make’ with generic makefiles:$ cd gsoap/src $ make -f MakefileManual $ cd gsoap/wsdl $ make -f MakefileManual This builds 'soapcpp' with 'gcc' and 'wsdl2h' with 'g++' and installs the binaries in gsoap/bin. Move them to a bin directory or include them in your executalbe path.
交叉编译(参考51~56行):
To compile with a different compiler instead of GCC, for example ‘clang’, use:$ cd gsoap/src $ make CC=clang -f MakefileManual $ cd gsoap/wsdl $ make CC=clang CPP=clang++ -f MakefileManual secure 注:secure选项为HTTPS使能。 不需要HTTPS时不需要 secure 选项。
- 将gsoap/bin目录下的 soapcpp2和wsdl2h拷贝到$PATH目录下。
测试gsoap.(主机可以访问互联网)
$ cd gsoap/samples/calc $ cp ../../stdsoap2.c . $ cp ../../stdsoap2.h . $ soapcpp2 -c calc.h $ cc -o calcclient calcclient.c stdsoap2.c soapC.c soapClient.c
编译生成calcclient, 并执行
$ ./calcclient add 3 4
result = 7
测试成功。
0 0
- gsoap使用示例
- gsoap使用示例
- gsoap示例
- GSOAP calc 示例
- GSoap使用
- gSOAP使用
- gsoap使用
- 使用gsoap
- gsoap使用
- gSOAP使用
- gsoap使用
- gsoap使用心得[zt]
- gSOAP的使用
- gsoap使用心得
- gsoap使用心得!
- gSoap的使用
- gSOAP的使用
- GSOAP使用-转载
- 十六、Hadoop1.0伪集群安装(上)
- 微信公众平台开发入门教程(SAE方倍工作室)
- HttpClient 4.5使用(一)
- android studio gridlayout拼图游戏(一)让图片完整显示
- redis DB Key Value design
- gsoap使用示例
- 113. Path Sum II
- CentOS+Nginx一步一步开始配置负载均衡
- iOS加载控制器的三种方式
- Kali Linux渗透基础知识整理(一):信息搜集 20160726
- CNN进展与技巧(下)
- 阿里数据库迁移项目yugong
- NoHttp报错之Please invoke NoHttp.initialize(Application) on Application#onCreate()
- 题目244 16进制的简单运算