• 大小: 6.84MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-11-08
  • 语言: C/C++
  • 标签: C++  WebService  

资源简介

C++_WebService_Demon,使用C++实现的基于gsoap的WebService接口程序,包含Server端和Client端

资源截图

代码片段和文件信息

// GSoapClient.cpp : 定义控制台应用程序的入口点。
//

#include “stdafx.h“
#include 
#include “soap.nsmap“


int _tmain(int argc _TCHAR* argv[])
{
struct soap math_soap;
soap_init(&math_soap);

int nResult = 0;
const char* pWebService = “http://127.0.0.1:8686“;

soap_call_Add(&math_soap  pWebService ““ 60 30 &nResult);
if (math_soap.error)
{
soap_print_fault(&math_soap stderr);
}
printf(“webservice:60+30=%d\n“ nResult);

soap_call_Sub(&math_soap  pWebService ““ 60 30 &nResult);
if (math_soap.error)
{
soap_print_fault(&math_soap stderr);
}
printf(“webservice:60-30=%d\n“ nResult);

soap_call_Mul(&math_soap  pWebService ““ 60 30 &nResult);
if (math_soap.error)
{
soap_print_fault(&math_soap stderr);
}
printf(“webservice:60*30=%d\n“ nResult);

soap_call_Div(&math_soap  pWebService ““ 60 30 &nResult);
if (math_soap.error)
{
soap_print_fault(&math_soap stderr);
}
printf(“webservice:60/30=%d\n“ nResult);

soap_end(&math_soap);
soap_done(&math_soap);


system(“pause“);

return 0;
}


 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-03-19 20:31  GSoapServer\
     目录           0  2016-03-19 20:35  GSoapServer\Debug\
     文件      309248  2016-03-19 20:42  GSoapServer\Debug\GSoapClient.exe
     文件      813604  2016-03-19 20:42  GSoapServer\Debug\GSoapClient.ilk
     文件     1338368  2016-03-19 20:42  GSoapServer\Debug\GSoapClient.pdb
     文件      309248  2016-03-19 20:11  GSoapServer\Debug\GSoapServer.exe
     文件      790272  2016-03-19 20:11  GSoapServer\Debug\GSoapServer.ilk
     文件     1313792  2016-03-19 20:11  GSoapServer\Debug\GSoapServer.pdb
     目录           0  2016-03-19 20:41  GSoapServer\GSoapClient\
     目录           0  2016-03-19 20:42  GSoapServer\GSoapClient\Debug\
     文件        7088  2016-03-19 20:42  GSoapServer\GSoapClient\Debug\BuildLog.htm
     文件         663  2016-03-19 20:35  GSoapServer\GSoapClient\Debug\GSoapClient.exe.embed.manifest
     文件         728  2016-03-19 20:35  GSoapServer\GSoapClient\Debug\GSoapClient.exe.embed.manifest.res
     文件         621  2016-03-19 20:42  GSoapServer\GSoapClient\Debug\GSoapClient.exe.intermediate.manifest
     文件       55150  2016-03-19 20:42  GSoapServer\GSoapClient\Debug\GSoapClient.obj
     文件     3211264  2016-03-19 20:34  GSoapServer\GSoapClient\Debug\GSoapClient.pch
     文件           0  2016-03-19 20:34  GSoapServer\GSoapClient\Debug\GSoapClient.pch.ib_tag
     文件          65  2016-03-19 20:42  GSoapServer\GSoapClient\Debug\mt.dep
     文件      235646  2016-03-19 20:34  GSoapServer\GSoapClient\Debug\soapC.obj
     文件       57715  2016-03-19 20:34  GSoapServer\GSoapClient\Debug\soapClient.obj
     文件       12169  2016-03-19 20:34  GSoapServer\GSoapClient\Debug\stdafx.obj
     文件      646246  2016-03-19 20:34  GSoapServer\GSoapClient\Debug\stdsoap2.obj
     文件      723968  2016-03-19 20:42  GSoapServer\GSoapClient\Debug\vc90.idb
     文件      372736  2016-03-19 20:42  GSoapServer\GSoapClient\Debug\vc90.pdb
     文件        1116  2016-03-19 20:41  GSoapServer\GSoapClient\GSoapClient.cpp
     文件        5892  2016-03-19 20:34  GSoapServer\GSoapClient\GSoapClient.vcproj
     文件        1415  2016-03-19 21:01  GSoapServer\GSoapClient\GSoapClient.vcproj.ANJUBAO.lixiangxiang.user
     文件        1207  2016-03-19 20:31  GSoapServer\GSoapClient\ReadMe.txt
     文件         535  2016-03-19 19:48  GSoapServer\GSoapClient\soap.nsmap
     文件       85880  2016-03-19 19:48  GSoapServer\GSoapClient\soapC.cpp
     文件        7992  2016-03-19 19:48  GSoapServer\GSoapClient\soapClient.cpp
............此处省略45个文件信息

评论

共有 条评论