一、建立/mnt/hgfs/Bang/gsoap-2.8/gsoap/web ,打开终端cd进入此文件夹
二、
../bin/linux386/wsdl2h -c -o test.h http://218.204.137.50:7003/wcf_device.svc?wsdl 生成纯c头文件test.h
如果出现错误提示:
Cannot open file 'typemap.dat'
Problem reading type map file 'typemap.dat'.
Using internal type definitions for C instead.
把gsoap-2.8/gsoap/下的typemap.dat复制到/web/下,重新执行wsdl2h工具
三、
../bin/linux386/soapcpp2 -C -x test.h -I/home/shkh/gsoap-2.8/gsoap/import生成client