首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > XML SOAP >

gSOAP连接SSL的有关问题

2012-03-02 
gSOAP连接SSL的问题使用gSOAP来编写客户端,下载了gSOAP2.8.3版本,E:\down\gsoap-2.8\gsoap\bin\win32wsdl

gSOAP连接SSL的问题
使用gSOAP来编写客户端,下载了gSOAP2.8.3版本,
E:\down\gsoap-2.8\gsoap\bin\win32>wsdl2h -o AccountService.h https://api.baidu.com/sem/sms/v2/AccountService?wsdl
** The gSOAP WSDL/Schema processor for C and C++, wsdl2h release 2.8.3
** Copyright (C) 2000-2011 Robert van Engelen, Genivia Inc.
** All Rights Reserved. This product is provided "as is", without any warranty.
** The wsdl2h tool is released under one of the following two licenses:
** GPL or the commercial license by Genivia Inc. Use option -l for details.
Saving AccountService.h
Cannot open file 'typemap.dat'
Problem reading type map file 'typemap.dat'.
Using internal type definitions for C++ instead.
Cannot connect to https site: no SSL support, please rebuild wsdl2h with SSL or
download the files and rerun wsdl2h
 
说是不能连接https,不支持ssl,将wsdl下载下来用的本地路径试过了也是一样的。然后编译支持ssl的wsdl2h(rebuild wsdl2h with SSL )不知道怎么做,看了很久也没搞成功。
有没有支持SSL的gSOAP wsdl2h工具?
求解答

[解决办法]
要么手动下载wsdl和schema文件,重新运行wsdl2h -o output.h <wsdl_file>
要么使用"make secure"重新编译支持ssl的wsdl2h(前提是安装了openssl)

热点排行