gsoap一键生成C++代理类及其调用
- 下载gsoap下载地址 https://sourceforge.net/projects/gsoap2/files/,我下载的是gsoap_2.8.87.zip
- 解压后依次进入 gsoap-2.8/gsoap/bin/win32 目录,新建一个start.bat文件,将以下内容复制粘贴进去
-
echo 生成头文件Service.h
-
wsdl2h.exe -o Service.h http:
//www.webxml.com.cn/WebServices/WeatherWebService.asmx?WSDL
-
-
echo 生成其它soap文件支持
-
soapcpp2.exe -I../../
import -x -L -i -C Service.h
-1
-
-
del OutFile /s /Q
-
MD OutFile
-
echo 拷贝文件
-
copy ..\..\stdsoap2.h OutFile\
-
copy ..\..\stdsoap2.cpp OutFile\
-
copy *.h OutFile\
-
copy *.cpp OutFile\
-
copy *.nsmap OutFile\
-
-
echo 删除临时文件
-
del /f/q .\*.h
-
del /f/q .\*.cpp
-
del /f/q .\*.nsmap
-
-
pause
- 修改start.bat文件中wsdl服务链接地址,这里以天气预报webservice服务地址http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?WSDL进行举例
- wsdl2h.exe和soapcpp2.exe生成代理类程序入参参数根据实际情况可适量进行调整
-
wsdl2h
.exe参数常用选项
-
-o
filename
.h 将
wsdl转化为
filename
.h头文件
-
-n
name 使用
name命名空间前缀代替默认的前缀
ns
-
-c 产生纯
C代码,否则是
C++代码
-
-s 不要使用
STL代码
-
-t
filename
.dat 使用
filename
.dat代替默认的
typemap
.dat文件
-
-e 禁止为
enum成员加上名空间前缀
-
-
soapcpp2
.exe参数常用选项
-
-C 仅生成客户端代码
-
-S 仅生成服务器端代码
-
-L 不要产生
soapClientLib
.c和
soapServerLib
.c文件
-
-c 产生纯
C代码,否则是
C++代码(与头文件有关)
-
-I 指定
import路径(见上文)
-
-x 不要产生
XML示例文件
-
-i 生成
C++包装,客户端为
xxxxProxy
.h(
.cpp),服务器端为
xxxxService
.h(
.cpp)
- 双击运行start.bat,执行完成后会在当前目录生成OutFile文件夹,里面的所有文件即是我们需要加入到VS工程中的文件
- 以Visual Studio 2008进行举例说明,调用该服务的getSupportCity接口,入参byProvinceName输入:湖北,获取返回结果
-
// TestWeatherWebService.cpp : 定义控制台应用程序的入口点。
-
//
-
-
#include "stdafx.h"
-
#include "TestWeatherWebService.h"
-
#include "WeatherWebServiceSoap.nsmap"
-
#include "soapWeatherWebServiceSoapProxy.h"
-
-
#ifdef _DEBUG
-
#define new DEBUG_NEW
-
#endif
-
-
-
// 唯一的应用程序对象
-
-
CWinApp theApp;
-
-
using
namespace
std;
-
-
string UTF8ToGBK(const std::string& strUTF8)
-
{
-
int len = MultiByteToWideChar(CP_UTF8,
0, strUTF8.c_str(),
-1,
NULL,
0);
-
unsigned
short * wszGBK =
new
unsigned
short[len +
1];
-
memset(wszGBK,
0, len *
2 +
2);
-
MultiByteToWideChar(CP_UTF8,
0, (LPCTSTR)strUTF8.c_str(),
-1, (LPWSTR)wszGBK, len);
-
-
len = WideCharToMultiByte(CP_ACP,
0, (LPCWSTR)wszGBK,
-1,
NULL,
0,
NULL,
NULL);
-
char *szGBK =
new
char[len +
1];
-
memset(szGBK,
0, len +
1);
-
WideCharToMultiByte(CP_ACP,
0, (LPCWSTR)wszGBK,
-1, szGBK, len,
NULL,
NULL);
-
std::
string strTemp(szGBK);
-
delete [] szGBK;
-
szGBK =
NULL;
-
delete [] wszGBK;
-
wszGBK =
NULL;
-
return strTemp;
-
}
-
-
string GBKToUTF8(const std::string& strGBK)
-
{
-
string strOutUTF8 =
"";
-
WCHAR * str1;
-
int n = MultiByteToWideChar(CP_ACP,
0, strGBK.c_str(),
-1,
NULL,
0);
-
str1 =
new WCHAR[n];
-
MultiByteToWideChar(CP_ACP,
0, strGBK.c_str(),
-1, str1, n);
-
n = WideCharToMultiByte(CP_UTF8,
0, str1,
-1,
NULL,
0,
NULL,
NULL);
-
char * str2 =
new
char[n];
-
WideCharToMultiByte(CP_UTF8,
0, str1,
-1, str2, n,
NULL,
NULL);
-
strOutUTF8 = str2;
-
delete [] str1;
-
str1 =
NULL;
-
delete [] str2;
-
str2 =
NULL;
-
return strOutUTF8;
-
}
-
-
int _tmain(
int argc, TCHAR* argv[], TCHAR* envp[])
-
{
-
int nRetCode =
0;
-
-
// 初始化 MFC 并在失败时显示错误
-
if (!AfxWinInit(::GetModuleHandle(
NULL),
NULL, ::GetCommandLine(),
0))
-
{
-
// TODO: 更改错误代码以符合您的需要
-
_tprintf(_T(
"错误: MFC 初始化失败\n"));
-
nRetCode =
1;
-
}
-
else
-
{
-
// TODO: 在此处为应用程序的行为编写代码。
-
}
-
-
WeatherWebServiceSoapProxy service(
"http://www.webxml.com.cn/WebServices/WeatherWebService.asmx", SOAP_C_UTFSTRING);
-
service.connect_timeout =
10;
//连接超时时间,正值以秒为单位,负值以微秒为单位
-
service.send_timeout =
10;
//发送超时时间,正值以秒为单位,负值以微秒为单位
-
service.recv_timeout =
10;
//接收超时时间,正值以秒为单位,负值以微秒为单位
-
//service.accept_timeout;
-
//service.transfer_timeout;
-
-
_ns1__getSupportCity input;
-
_ns1__getSupportCityResponse output;
-
-
string strProvinceName =
"湖北";
-
cout <<
"input:" << strProvinceName <<
endl;
-
-
string strUtfProvinceName = GBKToUTF8(strProvinceName);
-
input.byProvinceName = &strUtfProvinceName;
-
int soap = service.getSupportCity(&input, output);
-
if (SOAP_OK == soap &&
NULL != output.getSupportCityResult)
-
{
-
for (
int i =
0; i < output.getSupportCityResult->
string.size(); i++)
-
{
-
cout <<
"output:" << UTF8ToGBK(output.getSupportCityResult->
string.at(i)) <<
endl;
-
}
-
}
-
else
-
{
-
cout <<
"error:"<<service.error<<
",faultcode:"<<*soap_faultcode(&service)<<
",faultstr:"<<*soap_faultstring(&service) <<
endl;
-
}
-
-
system(
"pause");
-
return nRetCode;
-
}
- 工程部署:
- 执行结果:
<li class="tool-item tool-active is-like "><a href="javascript:;"><svg class="icon" aria-hidden="true"> <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#csdnc-thumbsup"></use> </svg><span class="name">点赞</span> <span class="count"></span> </a></li> <li class="tool-item tool-active is-collection "><a href="javascript:;" data-report-click="{"mod":"popu_824"}"><svg class="icon" aria-hidden="true"> <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-csdnc-Collection-G"></use> </svg><span class="name">收藏</span></a></li> <li class="tool-item tool-active is-share"><a href="javascript:;" data-report-click="{"mod":"1582594662_002"}"><svg class="icon" aria-hidden="true"> <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#icon-csdnc-fenxiang"></use> </svg>分享</a></li> <!--打赏开始--> <!--打赏结束--> <li class="tool-item tool-more"> <a> <svg t="1575545411852" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5717" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200"><defs><style type="text/css"></style></defs><path d="M179.176 499.222m-113.245 0a113.245 113.245 0 1 0 226.49 0 113.245 113.245 0 1 0-226.49 0Z" p-id="5718"></path><path d="M509.684 499.222m-113.245 0a113.245 113.245 0 1 0 226.49 0 113.245 113.245 0 1 0-226.49 0Z" p-id="5719"></path><path d="M846.175 499.222m-113.245 0a113.245 113.245 0 1 0 226.49 0 113.245 113.245 0 1 0-226.49 0Z" p-id="5720"></path></svg> </a> <ul class="more-box"> <li class="item"><a class="article-report">文章举报</a></li> </ul> </li> </ul> </div> </div> <div class="person-messagebox"> <div class="left-message"><a href="https://blog.csdn.net/qq0824"> <img src="https://profile.csdnimg.cn/1/A/E/3_qq0824" class="avatar_pic" username="qq0824"> <img src="https://g.csdnimg.cn/static/user-reg-year/2x/10.png" class="user-years"> </a></div> <div class="middle-message"> <div class="title"><span class="tit"><a href="https://blog.csdn.net/qq0824" data-report-click="{"mod":"popu_379"}" target="_blank">喻大帅</a></span> </div> <div class="text"><span>发布了43 篇原创文章</span> · <span>获赞 13</span> · <span>访问量 7万+</span></div> </div> <div class="right-message"> <a href="https://im.csdn.net/im/main.html?userName=qq0824" target="_blank" class="btn btn-sm btn-red-hollow bt-button personal-letter">私信 </a> <a class="btn btn-sm bt-button personal-watch" data-report-click="{"mod":"popu_379"}">关注</a> </div> </div> </div> </article>
<script>
$("#blog_detail_zk_collection").click(function(){
window.csdn.articleCollection()
})
<div id="dmp_ad_58"><div id="kp_box_58" data-pid="58"><script type="text/javascript">
(function() {
var s = "_" + Math.random().toString(36).slice(2);
document.write('<div style="" id="' + s + '"></div>');
(window.slotbydup = window.slotbydup || []).push({
id: "u3501897",
container: s
});
})();
<a id="commentBox" name="commentBox"></a>
我的gsoap创建客户端网络代理过程
06-12 阅读数 14
2017年06月11日16:42:58这几天做了一个售电接口(windows平台下),包括webservice服务(C#)、webservice动态库、客户端dll(C++)、客户端gsoap代理。软... 博文 来自: weixin_34128501的博客
【加急百分】gsoap的soapcpp2工具生成WebService,如何传回int数组?
我的工作环境如下: VS 2005 gsoap_2.7.15. 我需要提供一个WebService借口, int GetIntArr(), 传回一个int数组。 请问这个函数在服务端如何实现? 这个是 论坛
<div class="recommend-item-box recommend-box-ident recommend-download-box clearfix">
<a href="https://download.csdn.net/download/u011306659/9444979" rel="noopener" target="_blank" data-report-click="{"mod":"popu_387","index":"4","strategy":"BlogCommendFromBaidu","dest":"https:\/\/download.csdn.net\/download\/u011306659\/9444979"}" data-report-view="{"mod":"popu_387","index":"4","strategy":"BlogCommendFromBaidu","dest":"https:\/\/download.csdn.net\/download\/u011306659\/9444979"}" data-report-query="depth_1-utm_source=distribute.pc_relevant.none-task-download-BlogCommendFromBaidu-4&utm_source=distribute.pc_relevant.none-task-download-BlogCommendFromBaidu-4">
<div class="content clearfix">
<div class="">
<h4 class="text-truncate oneline clearfix">
soap<em>c</em>pp2.exe wsdl2h.exe </h4>
<span class="data float-right">02-26</span>
</div>
<div class="desc oneline">
将 wsdl 转化为.h文件,并生成对应的C++代理类,方法: wsdl2h.exe -o ****.h http://www.********.wsdl soapcpp2.exe -C -L -i </div>
<span class="type-show type-show-download">下载</span>
</div>
</a>
</div>
<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_59" data-pid="59"><script type="text/javascript">
(function() {
var s = "_" + Math.random().toString(36).slice(2);
document.write('<div style="" id="' + s + '"></div>');
(window.slotbydup = window.slotbydup || []).push({
id: "u3501897",
container: s
});
})();
webservice的SOAP代理设置
09-01 阅读数 80
我们的服务器是可以访问的设置的代理同样也可以访问接下来设置代理接着打开TCP窗口最后来看数据转载于:https://www.cnblogs.com/xiaostudy/p/9569530.html..... 博文 来自: weixin_30649641的博客
gSoap 生成代理类 调用webService问题
本人有两个服务端的wsdl 分别一个是C#开发的服务端 a.wsdl 和JAVA开发的服务端 b.wsdl 我是这样生成.h文件 wsdl2h.exe -c++ -s -nAB -NAB -o All 论坛
gsoap使用总结
10-24 阅读数 6158
项目中新加网管平台,所有应用都需要向网管平台(web应用)定时主动上报监控的数据统计。各相关应用与网管平台部署在不同服务器,网络互通。 各应用包含java,c++的实现。其中c++访问web serv... 博文 来自: krens的专栏
<div class="recommend-item-box recommend-box-ident recommend-download-box clearfix">
<a href="https://download.csdn.net/download/icerlion/2170715" rel="noopener" target="_blank" data-report-click="{"mod":"popu_387","index":"9","strategy":"BlogCommendFromBaidu","dest":"https:\/\/download.csdn.net\/download\/icerlion\/2170715"}" data-report-view="{"mod":"popu_387","index":"9","strategy":"BlogCommendFromBaidu","dest":"https:\/\/download.csdn.net\/download\/icerlion\/2170715"}" data-report-query="depth_1-utm_source=distribute.pc_relevant.none-task-download-BlogCommendFromBaidu-9&utm_source=distribute.pc_relevant.none-task-download-BlogCommendFromBaidu-9">
<div class="content clearfix">
<div class="">
<h4 class="text-truncate oneline clearfix">
<em>gsoap</em>写的WebServi<em>c</em>e传递数组 </h4>
<span class="data float-right">03-26</span>
</div>
<div class="desc oneline">
环境: gsoap_2.7.15 VS 2005 使用gsoap编写的WebService传递数组。 该WebService有一个接口,叫GetIntArr, 入参为一个int数组, 出参也为一个in </div>
<span class="type-show type-show-download">下载</span>
</div>
</a>
</div><div class="recommend-item-box baiduSearch recommend-box-ident" data-report-view="{"mod":"popu_614","dest":"https://blog.csdn.net/qqwangfan/article/details/67637467","strategy":"searchFromBaidu1","index":"1"}" data-report-click="{"mod":"popu_614","dest":"https://blog.csdn.net/qqwangfan/article/details/67637467","strategy":"searchFromBaidu1","index":"1"}" data-track-view="{"mod":"popu_614","dest":"https://blog.csdn.net/qqwangfan/article/details/67637467","strategy":"searchFromBaidu1","index":0,"extend1":"_"}" data-track-click="{"mod":"popu_614","dest":"https://blog.csdn.net/qqwangfan/article/details/67637467","strategy":"searchFromBaidu1","index":0,"extend1":"_"}" data-flg="true"> <a href="https://blog.csdn.net/qqwangfan/article/details/67637467" target="_blank"> <h4 class="text-truncate oneline" style="width: 633px;"><em>C</em>/<em>C</em>++利用<em>gsoap</em>库<em>调用</em>WebServi<em>c</em>e_qqwangfan的专栏-<em>C</em>SDN博客</h4> <div class="info-box d-flex align-content-center"> <p> <span class="date">1-20</span> </p> </div> </a> </div><div class="recommend-item-box baiduSearch recommend-box-ident" data-report-view="{"mod":"popu_614","dest":"https://blog.csdn.net/wu110112/article/details/75048902","strategy":"searchFromBaidu1","index":"2"}" data-report-click="{"mod":"popu_614","dest":"https://blog.csdn.net/wu110112/article/details/75048902","strategy":"searchFromBaidu1","index":"2"}" data-track-view="{"mod":"popu_614","dest":"https://blog.csdn.net/wu110112/article/details/75048902","strategy":"searchFromBaidu1","index":1,"extend1":"_"}" data-track-click="{"mod":"popu_614","dest":"https://blog.csdn.net/wu110112/article/details/75048902","strategy":"searchFromBaidu1","index":1,"extend1":"_"}" data-flg="true"> <a href="https://blog.csdn.net/wu110112/article/details/75048902" target="_blank"> <h4 class="text-truncate oneline" style="width: 641px;">windows平台下<em>gsoap</em><em>生成</em><em>C</em>++客户端源码_华琳科技的专栏-<em>C</em>SDN博客</h4> <div class="info-box d-flex align-content-center"> <p> <span class="date">1-6</span> </p> </div> </a> </div>
<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_60" data-pid="60"><script async="async" charset="utf-8" src="https://shared.ydstatic.com/js/yatdk/3.0.1/stream.js" data-id="6cb24153a03289ff3597c7aab4b69fe9" data-div-style="width:100%;padding:1.5%;background:#fff;" data-tit-style="margin-bottom: 6px; font-size: 18px; line-height: 24px; color: #3d3d3d;display: inline-block;font-weight:bold;" data-des-style="font-size: 13px; line-height: 22px; white-space: normal; color: #999;" data-img-style="float:left;margin-right:15px;width:90px;height:69px;" data-is-handling="1">
<div class="recommend-item-box recommend-box-ident recommend-download-box clearfix">
<a href="https://download.csdn.net/download/zesen2008/4723016" rel="noopener" target="_blank" data-report-click="{"mod":"popu_387","index":"10","strategy":"BlogCommendFromBaidu","dest":"https:\/\/download.csdn.net\/download\/zesen2008\/4723016"}" data-report-view="{"mod":"popu_387","index":"10","strategy":"BlogCommendFromBaidu","dest":"https:\/\/download.csdn.net\/download\/zesen2008\/4723016"}" data-report-query="depth_1-utm_source=distribute.pc_relevant.none-task-download-BlogCommendFromBaidu-10&utm_source=distribute.pc_relevant.none-task-download-BlogCommendFromBaidu-10">
<div class="content clearfix">
<div class="">
<h4 class="text-truncate oneline clearfix">
<em>c</em>++ <em>gsoap</em> webservi<em>c</em>e文件传送demo </h4>
<span class="data float-right">11-02</span>
</div>
<div class="desc oneline">
win7环境,利用VC和gsoap实现webservice文件传输 </div>
<span class="type-show type-show-download">下载</span>
</div>
</a>
</div><div class="recommend-item-box baiduSearch recommend-box-ident" data-report-view="{"mod":"popu_614","dest":"https://blog.csdn.net/dongdan_002/article/details/46790879","strategy":"searchFromBaidu1","index":"3"}" data-report-click="{"mod":"popu_614","dest":"https://blog.csdn.net/dongdan_002/article/details/46790879","strategy":"searchFromBaidu1","index":"3"}" data-track-view="{"mod":"popu_614","dest":"https://blog.csdn.net/dongdan_002/article/details/46790879","strategy":"searchFromBaidu1","index":2,"extend1":"_"}" data-track-click="{"mod":"popu_614","dest":"https://blog.csdn.net/dongdan_002/article/details/46790879","strategy":"searchFromBaidu1","index":2,"extend1":"_"}" data-flg="true"> <a href="https://blog.csdn.net/dongdan_002/article/details/46790879" target="_blank"> <h4 class="text-truncate oneline" style="width: 641px;">...供<em>C</em>++及java客户端<em>调用</em>_<em>C</em>/<em>C</em>++_dongdan_002的专栏-<em>C</em>SDN博客</h4> <div class="info-box d-flex align-content-center"> <p> <span class="date">4-4</span> </p> </div> </a> </div><div class="recommend-item-box baiduSearch recommend-box-ident" data-report-view="{"mod":"popu_614","dest":"https://blog.csdn.net/oscar999/article/details/40342301","strategy":"searchFromBaidu1","index":"4"}" data-report-click="{"mod":"popu_614","dest":"https://blog.csdn.net/oscar999/article/details/40342301","strategy":"searchFromBaidu1","index":"4"}" data-track-view="{"mod":"popu_614","dest":"https://blog.csdn.net/oscar999/article/details/40342301","strategy":"searchFromBaidu1","index":3,"extend1":"_"}" data-track-click="{"mod":"popu_614","dest":"https://blog.csdn.net/oscar999/article/details/40342301","strategy":"searchFromBaidu1","index":3,"extend1":"_"}" data-flg="true"> <a href="https://blog.csdn.net/oscar999/article/details/40342301" target="_blank"> <h4 class="text-truncate oneline" style="width: 641px;"><em>gsoap</em> 实现 <em>C</em>/<em>C</em>++ <em>调用</em>web servi<em>c</em>e_os<em>c</em>ar999的专栏-<em>C</em>SDN博客</h4> <div class="info-box d-flex align-content-center"> <p> <span class="date">1-9</span> </p> </div> </a> </div>
onvif开发:使用wsdl2h和soap2cpp生成开发文件
06-26 阅读数 5555
关于使用gsoap开发onvif的介绍说明请自行搜索!扼要开发流程看这:gSOAP的使用。这里只是记录我在开发过程中的一点东西。一、使用wsdl2h生成头文件:1)使用在线wsdl:wsdl2h -o... 博文 来自: 守得云开见月明
<div class="recommend-item-box blog-expert-recommend-box" style="display: block;">
<div class="d-flex">
<div class="blog-expert-recommend">
<div class="blog-expert">
<div class="blog-expert-flexbox" data-report-view="{"mod":"popu_709","dest":"https://blog.csdn.net/qq0824/article/details/96996975"}"><div class="blog-expert-item"><div class="blog-expert-info-box"><div class="blog-expert-img-box" data-report-click="{"mod":"popu_709","dest":"https://blog.csdn.net/qq0824/article/details/96996975"}"><a href="https://blog.csdn.net/abcbc" target="_blank"><img src="https://profile.csdnimg.cn/3/D/6/3_abcbc" username="abcbc" alt="Alf" title="Alf"></a><span data-report-click="{"mod":"popu_710","dest":"https://blog.csdn.net/qq0824/article/details/96996975"}"><span class="blog-expert-button-follow btn-red-follow" data-name="abcbc" data-nick="Alf">关注</span></span></div><div class="info"><span data-report-click="{"mod":"popu_709","dest":"https://blog.csdn.net/qq0824/article/details/96996975"}"><a href="https://blog.csdn.net/abcbc" target="_blank"><h5 class="oneline" title="Alf">Alf</h5></a></span> <p></p><p class="article-num" title="18篇文章"> 18篇文章</p><p class="article-num" title="排名:千里之外"> 排名:千里之外</p><p></p></div></div></div><div class="blog-expert-item"><div class="blog-expert-info-box"><div class="blog-expert-img-box" data-report-click="{"mod":"popu_709","dest":"https://blog.csdn.net/qq0824/article/details/96996975"}"><a href="https://blog.csdn.net/weixin_34128501" target="_blank"><img src="https://profile.csdnimg.cn/C/D/9/3_weixin_34128501" username="weixin_34128501" alt="weixin_34128501" title="weixin_34128501"></a><span data-report-click="{"mod":"popu_710","dest":"https://blog.csdn.net/qq0824/article/details/96996975"}"><span class="blog-expert-button-follow btn-red-follow" data-name="weixin_34128501" data-nick="weixin_34128501">关注</span></span></div><div class="info"><span data-report-click="{"mod":"popu_709","dest":"https://blog.csdn.net/qq0824/article/details/96996975"}"><a href="https://blog.csdn.net/weixin_34128501" target="_blank"><h5 class="oneline" title="weixin_34128501">weixin_34128501</h5></a></span> <p></p><p class="article-num" title="4718篇文章"> 4718篇文章</p><p class="article-num" title="排名:千里之外"> 排名:千里之外</p><p></p></div></div></div><div class="blog-expert-item"><div class="blog-expert-info-box"><div class="blog-expert-img-box" data-report-click="{"mod":"popu_709","dest":"https://blog.csdn.net/qq0824/article/details/96996975"}"><a href="https://blog.csdn.net/icerlion" target="_blank"><img src="https://profile.csdnimg.cn/B/F/E/3_icerlion" username="icerlion" alt="icerlion" title="icerlion"></a><span data-report-click="{"mod":"popu_710","dest":"https://blog.csdn.net/qq0824/article/details/96996975"}"><span class="blog-expert-button-follow btn-red-follow" data-name="icerlion" data-nick="icerlion">关注</span></span></div><div class="info"><span data-report-click="{"mod":"popu_709","dest":"https://blog.csdn.net/qq0824/article/details/96996975"}"><a href="https://blog.csdn.net/icerlion" target="_blank"><h5 class="oneline" title="icerlion">icerlion</h5></a></span> <p></p><p class="article-num" title="0篇文章"> 0篇文章</p><p class="article-num" title="排名:千里之外"> 排名:千里之外</p><p></p></div></div></div><div class="blog-expert-item"><div class="blog-expert-info-box"><div class="blog-expert-img-box" data-report-click="{"mod":"popu_709","dest":"https://blog.csdn.net/qq0824/article/details/96996975"}"><a href="https://blog.csdn.net/u011306659" target="_blank"><img src="https://profile.csdnimg.cn/C/7/4/3_u011306659" username="u011306659" alt="郁金香的季节" title="郁金香的季节"></a><span data-report-click="{"mod":"popu_710","dest":"https://blog.csdn.net/qq0824/article/details/96996975"}"><span class="blog-expert-button-follow btn-red-follow" data-name="u011306659" data-nick="郁金香的季节">关注</span></span></div><div class="info"><span data-report-click="{"mod":"popu_709","dest":"https://blog.csdn.net/qq0824/article/details/96996975"}"><a href="https://blog.csdn.net/u011306659" target="_blank"><h5 class="oneline" title="郁金香的季节">郁金香的季节</h5></a></span> <p></p><p class="article-num" title="37篇文章"> 37篇文章</p><p class="article-num" title="排名:千里之外"> 排名:千里之外</p><p></p></div></div></div></div>
</div>
</div>
</div>
</div><div class="recommend-item-box baiduSearch recommend-box-ident" data-report-view="{"mod":"popu_614","dest":"https://blog.csdn.net/tody_guo/article/details/7687539","strategy":"searchFromBaidu1","index":"5"}" data-report-click="{"mod":"popu_614","dest":"https://blog.csdn.net/tody_guo/article/details/7687539","strategy":"searchFromBaidu1","index":"5"}" data-track-view="{"mod":"popu_614","dest":"https://blog.csdn.net/tody_guo/article/details/7687539","strategy":"searchFromBaidu1","index":4,"extend1":"_"}" data-track-click="{"mod":"popu_614","dest":"https://blog.csdn.net/tody_guo/article/details/7687539","strategy":"searchFromBaidu1","index":4,"extend1":"_"}" data-flg="true"> <a href="https://blog.csdn.net/tody_guo/article/details/7687539" target="_blank"> <h4 class="text-truncate oneline" style="width: 633px;">使用<em>C</em>/<em>C</em>++程序通过<em>gSOAP</em><em>调用</em>WebServi<em>c</em>e_<em>C</em>/<em>C</em>++_Tody Guo..._<em>C</em>SDN博客</h4> <div class="info-box d-flex align-content-center"> <p> <span class="date">3-24</span> </p> </div> </a> </div><div class="recommend-item-box baiduSearch recommend-box-ident" data-report-view="{"mod":"popu_614","dest":"https://blog.csdn.net/skylj0209/article/details/3277180","strategy":"searchFromBaidu1","index":"6"}" data-report-click="{"mod":"popu_614","dest":"https://blog.csdn.net/skylj0209/article/details/3277180","strategy":"searchFromBaidu1","index":"6"}" data-track-view="{"mod":"popu_614","dest":"https://blog.csdn.net/skylj0209/article/details/3277180","strategy":"searchFromBaidu1","index":5,"extend1":"_"}" data-track-click="{"mod":"popu_614","dest":"https://blog.csdn.net/skylj0209/article/details/3277180","strategy":"searchFromBaidu1","index":5,"extend1":"_"}" data-flg="true"> <a href="https://blog.csdn.net/skylj0209/article/details/3277180" target="_blank"> <h4 class="text-truncate oneline" style="width: 633px;"><em>gsoap</em>(<em>C</em>/<em>C</em>++<em>调用</em>webservi<em>c</em>e)_<em>C</em>/<em>C</em>++_skylj0209的专栏-<em>C</em>SDN博客</h4> <div class="info-box d-flex align-content-center"> <p> <span class="date">3-29</span> </p> </div> </a> </div>
基于gsoap生成的WSDL文件生成Java webservice client
03-04 阅读数 7
这段时间项目需要做一个webservice client的项目,需要调用另外项目发布的webservice服务。开始觉得很简单,因为之前做过一些这方面的项目,觉得只要有wsdl文件就ok,剩下的都是用... 博文 来自: weixin_30653097的博客
windows平台下gsoap生成C++客户端源码
07-13 阅读数 2529
C++调用 Webservice接口方法声明: 当前我们采用人民网微博接口地址做测试(http://t.people.com.cn/services/MsgContentService),不能... 博文 来自: 华琳科技的专栏
<div class="recommend-item-box recommend-box-ident recommend-download-box clearfix">
<a href="https://download.csdn.net/download/u011720560/9948003" rel="noopener" target="_blank" data-report-click="{"mod":"popu_387","index":"14","strategy":"BlogCommendFromBaidu","dest":"https:\/\/download.csdn.net\/download\/u011720560\/9948003"}" data-report-view="{"mod":"popu_387","index":"14","strategy":"BlogCommendFromBaidu","dest":"https:\/\/download.csdn.net\/download\/u011720560\/9948003"}" data-report-query="depth_1-utm_source=distribute.pc_relevant.none-task-download-BlogCommendFromBaidu-14&utm_source=distribute.pc_relevant.none-task-download-BlogCommendFromBaidu-14">
<div class="content clearfix">
<div class="">
<h4 class="text-truncate oneline clearfix">
<em>C</em>++ 通过<em>gsoap</em><em>生成</em>WebServer 和Web<em>C</em>lient 内附<em>gsoap</em>包和测试源码 </h4>
<span class="data float-right">08-24</span>
</div>
<div class="desc oneline">
C++ 通过gsoap生成WebServer 和WebClient 内附gsoap包和测试源码,内部附有gsoap包、简单的使用说明以及测试代码 </div>
<span class="type-show type-show-download">下载</span>
</div>
</a>
</div>
<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_61" data-pid="61"><script type="text/javascript">
(function() {
var s = "_" + Math.random().toString(36).slice(2);
document.write('<div style="" id="' + s + '"></div>');
(window.slotbydup = window.slotbydup || []).push({
id: "u3501897",
container: s
});
})();
gsoap nsmap 重定义
诸位老师好! 我这2天在研究gsoap.做了一个例子。总是出错。下面先把过程说一遍。最后把编译器报错贴出来。请教诸位老师。 开发环境win7 64位 + vs2010 + gsoap2.8 1.生成. 论坛
gsoap使用方法,解析wsdl文档
07-19 阅读数 1733
下载gSoaphttp://sourceforge.net/projects/gsoap21.下载完成后直接解压缩,在目录gsoap-2.8\gsoap\bin下面有编译工具,支持多个平台,我们使用的... 博文 来自: ljpmtjbydd的博客
GSOAP 使用方法
01-14 阅读数 4238
1.下载相关组件最新版本2.8.14 http://www.cr173.com/soft/58102.html ,解压缩到F盘根目录下面。2.下载之后通过控制台程序来生成对应webservi... 博文 来自: FrankieWang008的专栏
gsoap开发service
07-02 阅读数 2543
最近要利用C++调用WebService接口,中间工具是gSoap,IDE:VS2010,WebService接口:http://webservice.webxml.com.cn/WebService... 博文 来自: caowei880123的专栏
<div class="recommend-item-box recommend-recommend-box"><div id="kp_box_62" data-pid="62"><script type="text/javascript">
(function() {
var s = "_" + Math.random().toString(36).slice(2);
document.write('<div style="" id="' + s + '"></div>');
(window.slotbydup = window.slotbydup || []).push({
id: "u3501897",
container: s
});
})();
eclipse创建webservice client, java调用
08-09 阅读数 1万+
需求描述 有一个WSDL地址, 需要把它转化成Java代码调用。 IDE环境要求 这里使用Eclipse自动生成。这里的eclipse需要安装有Web开发插件。 步骤 1. 首先新建一个 “Dyna... 博文 来自: 三月神的专栏
gsoap生成webservice调用客户端接口
11-15 阅读数 4865
1.下载gsoap2.82.运行wsdl2h.exe -o XXX.h XXX.wsdlwsdl文件可以是本地文件,也可以是服务器的wsdl,比如http://192.168.0.122:3333/w... 博文 来自: johnnywww的专栏
客户端gsoap代理设置
客户端用gsoap和服务器通信,之前解决了客户端穿透IE代理连接服务器的问题,直接获取IE的代理设置。 最近有客户是在保密单位,每个机子都有自己的帐号密码通过设置代理上网,类似qq的代理设置, 这个在 论坛
gsoap工具的使用与soap通信
10-23 阅读数 1321
gsoap工具下载地址:https://sourceforge.net/projects/gsoap2/files/wsdl example地址:http://schemas.xmlsoap.org/... 博文 来自: 王建国的专栏
gsoap client 偶尔返回错误-1和28,求解。
我客户端是采用的gsoap生成,大多数情况下调用web server的接口都是正常的,只是偶尔会出现-1和28的错误返回,比如: soap error: -1, (null), (null) soap 论坛
gsoap从多个服务器获取函数接口
06-25 阅读数 326
1.gsoap就是服务器中有一些API,我们通过gsoap来得到这些API2.其中涉及到两个文件,wsdl2h和soapcpp23.wsdl2h是用来产生头文件的。用法是wsdl2h -o 头文件名 ... 博文 来自: qq_34759481的博客
webservice 使用vs2005生成代理类方式访问与直接写soap方式访问的区别?
方法一:使用vs2005自带功能,添加web引用 使用类似代码 CoInitialize(NULL); HRESULT hr = S_OK; int hiResult; CComBSTR userna 论坛
如何生成代理类及wsdl下载
第三方提供了一个WebService接口,此接口只能在指定的机子上访问(服务器)。本地无法引用此接口。 现在的情况是:服务器上没有开发工具,也就没有wsdl.exe,这种情况怎么生成代理类。 服务器不 论坛
利用wsdl.exe生成webservice代理类
07-13 阅读数 1万+
利用wsdl.exe生成webservice代理类: 根据提供的wsdl生成webservice代理类1、开始->程序->Visual Studio 2005 命令提示2、输入如下红色标记部分 D:/... 博文 来自: ABC123
gsoap应用---利用gsoap工具生成代码
01-20 阅读数 7372
1、gsoap是什么? The gSOAP toolkit is an open source C and C++ software development toolkit forS... 博文 来自: jinzhou520 的专栏
在中国程序员是青春饭吗?
03-17 阅读数 14万+
今年,我也32了 ,为了不给大家误导,咨询了猎头、圈内好友,以及年过35岁的几位老程序员……舍了老脸去揭人家伤疤……希望能给大家以帮助,记得帮我点赞哦。目录:你以为的人生 一次又一次的伤害 猎头界的真... 博文 来自: 启舰
卸载 x 雷某度!GitHub 标星 1.5w+,从此我只用这款全能高速下载工具!
12-29 阅读数 16万+
作者 | Rocky0429来源 | Python空间大家好,我是 Rocky0429,一个喜欢在网上收集各种资源的蒟蒻…网上资源眼花缭乱,下载的方式也同样千奇百怪,比如 BT 下载,磁力链接,网... 博文 来自: Rocky0429
超全Python图像处理讲解(多图预警)
04-07 阅读数 3506
文章目录Pillow模块讲解一、Image模块1.1 、打开图片和显示图片1.2、创建一个简单的图像1.3、图像混合(1)透明度混合(2)遮罩混合1.4、图像缩放(1)按像素缩放(2)按尺寸缩放1.5... 博文 来自: ZackSock的博客
为什么猝死的都是程序员,基本上不见产品经理猝死呢?
01-05 阅读数 11万+
相信大家时不时听到程序员猝死的消息,但是基本上听不到产品经理猝死的消息,这是为什么呢?我们先百度搜一下:程序员猝死,出现将近700多万条搜索结果:搜索一下:产品经理猝死,只有400万条的搜索结果,从搜... 博文 来自: 曹银飞的专栏
<div class="recommend-item-box type_hot_word">
<div class="content clearfix" style="width: 712px;">
<div class="float-left">
<span>
<a href="https://java.csdn.net/" data-report-click="{"mod":"1586412712_001","dest":"https://java.csdn.net/","index":"索引1"}" data-report-view="{"mod":"1586412712_001","dest":"https://java.csdn.net/","index":"1"}" target="_blank">
Java</a>
</span>
<span>
<a href="https://c1.csdn.net/" data-report-click="{"mod":"1586412712_001","dest":"https://c1.csdn.net/","index":"索引2"}" data-report-view="{"mod":"1586412712_001","dest":"https://c1.csdn.net/","index":"2"}" target="_blank">
C语言</a>
</span>
<span>
<a href="https://python.csdn.net/" data-report-click="{"mod":"1586412712_001","dest":"https://python.csdn.net/","index":"索引3"}" data-report-view="{"mod":"1586412712_001","dest":"https://python.csdn.net/","index":"3"}" target="_blank">
Python</a>
</span>
<span>
<a href="https://cplus.csdn.net/" data-report-click="{"mod":"1586412712_001","dest":"https://cplus.csdn.net/","index":"索引4"}" data-report-view="{"mod":"1586412712_001","dest":"https://cplus.csdn.net/","index":"4"}" target="_blank">
C++</a>
</span>
<span>
<a href="https://csharp.csdn.net/" data-report-click="{"mod":"1586412712_001","dest":"https://csharp.csdn.net/","index":"索引5"}" data-report-view="{"mod":"1586412712_001","dest":"https://csharp.csdn.net/","index":"5"}" target="_blank">
C#</a>
</span>
<span>
<a href="https://vbn.csdn.net/" data-report-click="{"mod":"1586412712_001","dest":"https://vbn.csdn.net/","index":"索引6"}" data-report-view="{"mod":"1586412712_001","dest":"https://vbn.csdn.net/","index":"6"}" target="_blank">
Visual Basic .NET</a>
</span>
<span>
<a href="https://js.csdn.net/" data-report-click="{"mod":"1586412712_001","dest":"https://js.csdn.net/","index":"索引7"}" data-report-view="{"mod":"1586412712_001","dest":"https://js.csdn.net/","index":"7"}" target="_blank">
JavaScript</a>
</span>
<span>
<a href="https://php.csdn.net/" data-report-click="{"mod":"1586412712_001","dest":"https://php.csdn.net/","index":"索引8"}" data-report-view="{"mod":"1586412712_001","dest":"https://php.csdn.net/","index":"8"}" target="_blank">
PHP</a>
</span>
<span>
<a href="https://sql.csdn.net/" data-report-click="{"mod":"1586412712_001","dest":"https://sql.csdn.net/","index":"索引9"}" data-report-view="{"mod":"1586412712_001","dest":"https://sql.csdn.net/","index":"9"}" target="_blank">
SQL</a>
</span>
<span>
<a href="https://go.csdn.net/" data-report-click="{"mod":"1586412712_001","dest":"https://go.csdn.net/","index":"索引10"}" data-report-view="{"mod":"1586412712_001","dest":"https://go.csdn.net/","index":"10"}" target="_blank">
Go语言</a>
</span>
<span>
<a href="https://r.csdn.net/" data-report-click="{"mod":"1586412712_001","dest":"https://r.csdn.net/","index":"索引11"}" data-report-view="{"mod":"1586412712_001","dest":"https://r.csdn.net/","index":"11"}" target="_blank">
R语言</a>
</span>
<span>
<a href="https://assembly.csdn.net/" data-report-click="{"mod":"1586412712_001","dest":"https://assembly.csdn.net/","index":"索引12"}" data-report-view="{"mod":"1586412712_001","dest":"https://assembly.csdn.net/","index":"12"}" target="_blank">
Assembly language</a>
</span>
<span>
<a href="https://swift.csdn.net/" data-report-click="{"mod":"1586412712_001","dest":"https://swift.csdn.net/","index":"索引13"}" data-report-view="{"mod":"1586412712_001","dest":"https://swift.csdn.net/","index":"13"}" target="_blank">
Swift</a>
</span>
<span>
<a href="https://ruby.csdn.net/" data-report-click="{"mod":"1586412712_001","dest":"https://ruby.csdn.net/","index":"索引14"}" data-report-view="{"mod":"1586412712_001","dest":"https://ruby.csdn.net/","index":"14"}" target="_blank">
Ruby</a>
</span>
<span>
<a href="https://matlab.csdn.net/" data-report-click="{"mod":"1586412712_001","dest":"https://matlab.csdn.net/","index":"索引15"}" data-report-view="{"mod":"1586412712_001","dest":"https://matlab.csdn.net/","index":"15"}" target="_blank">
MATLAB</a>
</span>
<span>
<a href="https://plsql.csdn.net/" data-report-click="{"mod":"1586412712_001","dest":"https://plsql.csdn.net/","index":"索引16"}" data-report-view="{"mod":"1586412712_001","dest":"https://plsql.csdn.net/","index":"16"}" target="_blank">
PL/SQL</a>
</span>
<span>
<a href="https://perl.csdn.net/" data-report-click="{"mod":"1586412712_001","dest":"https://perl.csdn.net/","index":"索引17"}" data-report-view="{"mod":"1586412712_001","dest":"https://perl.csdn.net/","index":"17"}" target="_blank">
Perl</a>
</span>
<span>
<a href="https://vb.csdn.net/" data-report-click="{"mod":"1586412712_001","dest":"https://vb.csdn.net/","index":"索引18"}" data-report-view="{"mod":"1586412712_001","dest":"https://vb.csdn.net/","index":"18"}" target="_blank">
Visual Basic</a>
</span>
<span>
<a href="https://obj.csdn.net/" data-report-click="{"mod":"1586412712_001","dest":"https://obj.csdn.net/","index":"索引19"}" data-report-view="{"mod":"1586412712_001","dest":"https://obj.csdn.net/","index":"19"}" target="_blank">
Objective-C</a>
</span>
<span>
<a href="https://delphi.csdn.net/" data-report-click="{"mod":"1586412712_001","dest":"https://delphi.csdn.net/","index":"索引20"}" data-report-view="{"mod":"1586412712_001","dest":"https://delphi.csdn.net/","index":"20"}" target="_blank">
Delphi/Object Pascal</a>
</span>
<span>
<a href="https://www.csdn.net/unity/" data-report-click="{"mod":"1586412712_001","dest":"https://www.csdn.net/unity/","index":"索引21"}" data-report-view="{"mod":"1586412712_001","dest":"https://www.csdn.net/unity/","index":"21"}" target="_blank">
Unity3D</a>
</span>
</div>
</div>
</div>
<div class="recommend-loading-box">
<img src="https://csdnimg.cn/release/phoenix/images/feedLoading.gif">
</div>
<div class="recommend-end-box">
<p class="text-center">没有更多推荐了,<a href="https://blog.csdn.net/" class="c-blue c-blue-hover c-blue-focus">返回首页</a></p>
</div>
</div>
<div class="template-box">
<span>©️2019 CSDN</span><span class="point"></span>
<span>皮肤主题: 技术黑板</span>
<span> 设计师:
CSDN官方博客 </span>
</div>
</main>