gsoap入门:获取gsoap的错误信息
来源:互联网 发布:python核心编程第二版 编辑:程序博客网 时间:2024/06/07 18:31
今天学习gsoap的函数调用方式,一上来就出错了,错误原因还没找到,但为了查找出错原因,需要打出错误信息,于是学会了在调用gsoap的函数出错时获取错误信息的方式:
struct soap soap;//... 执行gsoap调用if (soap.error!= SOAP_OK) { // 只打错误码,貌似没啥用, std::printf("soap err,errcode = %d\n", status); // C++ 错误码字符串std::string std::ostringstream stream; soap_stream_fault(&soap, stream); // stream.str()返回std::string std::cout << stream.str() << std::endl; // C++ 直接输出错误信息到控制台std::error soap_stream_fault(&soap, std::cerr); // C 返回错误码字符串 char message[512]; soap_sprint_fault(&soap,message,512); printf("error message:%s\n",message); }
0 0
- gsoap入门:获取gsoap的错误信息
- gsoap入门:获取服务器(axis2)端的异常(exception)对象
- gSoap
- gsoap
- gsoap
- gSOAP
- gsoap
- gSoap
- Gsoap
- gSoap
- gSoap
- gsoap
- gSoap
- gsoap
- gSOAP
- gsoap
- gSoap
- gsoap
- 《Windows核心编程》之“Windows挂钩”(二)
- Linux 信号
- node.js
- 开发者所需要知道的 iOS 10 SDK 新特性
- BZOJ1593: [Usaco2008 Feb]Hotel 旅馆 线段树
- gsoap入门:获取gsoap的错误信息
- db2安装完后,在/home/db2inst1/sqllib/include/目录下没有db2ApiDf.h等API头文件的问题
- 发送邮件的plsql代码(续)
- applet中archive?
- 微信支付
- UVa12169 - Disgruntled Judge(模运算、拓展欧几里得)
- C/C++中static关键字详解
- 【华为机试题】字符串查找
- inodes占用100%的问题