-
大小: 6.68MB文件类型: .zip金币: 1下载: 0 次发布日期: 2023-10-03
- 语言: C/C++
- 标签: WebService
资源简介
C++调用C#WebService,在VS2015下测试通过。
代码片段和文件信息
/* soapC.cpp
Generated by gSOAP 2.8.19 from WebService.h
Copyright(C) 2000-2014 Robert van Engelen Genivia Inc. All Rights Reserved.
The generated code is released under one of the following licenses:
GPL or Genivia‘s license for commercial use.
This program is released under the GPL with the additional exemption that
compiling linking and/or using OpenSSL is allowed.
*/
#if defined(__BORLANDC__)
#pragma option push -w-8060
#pragma option push -w-8004
#endif
#include “soapH.h“
SOAP_SOURCE_STAMP(“@(#) soapC.cpp ver 2.8.19 2017-07-04 02:35:03 GMT“)
#ifndef WITH_NOGLOBAL
SOAP_FMAC3 int SOAP_FMAC4 soap_getheader(struct soap *soap)
{
soap->part = SOAP_IN_HEADER;
soap->header = soap_in_SOAP_ENV__Header(soap “SOAP-ENV:Header“ soap->header NULL);
soap->part = SOAP_END_HEADER;
return soap->header == NULL;
}
SOAP_FMAC3 int SOAP_FMAC4 soap_putheader(struct soap *soap)
{
if (soap->version && soap->header)
{ soap->part = SOAP_IN_HEADER;
if (soap_out_SOAP_ENV__Header(soap “SOAP-ENV:Header“ 0 soap->header NULL))
return soap->error;
soap->part = SOAP_END_HEADER;
}
return SOAP_OK;
}
SOAP_FMAC3 void SOAP_FMAC4 soap_serializeheader(struct soap *soap)
{
if (soap->version && soap->header)
soap_serialize_SOAP_ENV__Header(soap soap->header);
}
SOAP_FMAC3 void SOAP_FMAC4 soap_header(struct soap *soap)
{
if (soap->header == NULL)
{ if ((soap->header = soap_new_SOAP_ENV__Header(soap -1)))
soap_default_SOAP_ENV__Header(soap soap->header);
}
}
SOAP_FMAC3 void SOAP_FMAC4 soap_fault(struct soap *soap)
{
if (soap->fault == NULL)
{ soap->fault = soap_new_SOAP_ENV__Fault(soap -1);
if (soap->fault == NULL)
return;
soap_default_SOAP_ENV__Fault(soap soap->fault);
}
if (soap->version == 2 && !soap->fault->SOAP_ENV__Code)
{ soap->fault->SOAP_ENV__Code = soap_new_SOAP_ENV__Code(soap -1);
soap_default_SOAP_ENV__Code(soap soap->fault->SOAP_ENV__Code);
}
if (soap->version == 2 && !soap->fault->SOAP_ENV__Reason)
{ soap->fault->SOAP_ENV__Reason = soap_new_SOAP_ENV__Reason(soap -1);
soap_default_SOAP_ENV__Reason(soap soap->fault->SOAP_ENV__Reason);
}
}
SOAP_FMAC3 void SOAP_FMAC4 soap_serializefault(struct soap *soap)
{
soap_fault(soap);
if (soap->fault)
soap_serialize_SOAP_ENV__Fault(soap soap->fault);
}
SOAP_FMAC3 int SOAP_FMAC4 soap_putfault(struct soap *soap)
{
if (soap->fault)
return soap_put_SOAP_ENV__Fault(soap soap->fault “SOAP-ENV:Fault“ NULL);
return SOAP_OK;
}
SOAP_FMAC3 int SOAP_FMAC4 soap_getfault(struct soap *soap)
{
return (soap->fault = soap_get_SOAP_ENV__Fault(soap NULL “SOAP-ENV:Fault“ NULL)) == NULL;
}
SOAP_FMAC3 const char ** SOAP_FMAC4 soap_faultcode(struct soap *soap)
{
soap_fault(soap);
if (soap->version == 2 && soap->fault->SOAP_ENV__Code)
return (const char**)(void*)&soap->fault->SOAP_ENV__Code->SOAP_ENV__Value;
return (const char**)(void*)&soap->fault->faultcode;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2017-07-04 17:14 TestWebService\
目录 0 2017-07-04 17:14 TestWebService\.vs\
目录 0 2017-07-04 17:14 TestWebService\.vs\TestWebService\
目录 0 2017-07-04 17:14 TestWebService\.vs\TestWebService\v14\
文件 15872 2017-07-04 17:14 TestWebService\.vs\TestWebService\v14\.suo
文件 559 2017-07-04 10:35 TestWebService\CN_USCORE2017Soap.nsmap
目录 0 2017-07-04 17:14 TestWebService\Debug\
文件 9618676 2017-07-04 17:14 TestWebService\Debug\soapC.obj
文件 1118662 2017-07-04 17:14 TestWebService\Debug\soapClient.obj
文件 1466005 2017-07-04 17:14 TestWebService\Debug\soapCN_USCORE2017SoapProxy.obj
文件 11834 2017-07-04 17:14 TestWebService\Debug\stdafx.obj
文件 632715 2017-07-04 17:14 TestWebService\Debug\stdsoap2.obj
文件 1916 2017-07-04 17:14 TestWebService\Debug\TestWebService.Build.CppClean.log
文件 3442176 2017-07-04 17:14 TestWebService\Debug\TestWebService.exe
文件 4248656 2017-07-04 17:14 TestWebService\Debug\TestWebService.ilk
文件 346 2017-07-04 17:14 TestWebService\Debug\TestWebService.log
文件 334048 2017-07-04 17:14 TestWebService\Debug\TestWebService.obj
文件 3407872 2017-07-04 17:14 TestWebService\Debug\TestWebService.pch
文件 8876032 2017-07-04 17:14 TestWebService\Debug\TestWebService.pdb
目录 0 2017-07-04 17:14 TestWebService\Debug\TestWebService.tlog\
文件 4198 2017-07-04 17:14 TestWebService\Debug\TestWebService.tlog\CL.command.1.tlog
文件 159774 2017-07-04 17:14 TestWebService\Debug\TestWebService.tlog\CL.read.1.tlog
文件 3254 2017-07-04 17:14 TestWebService\Debug\TestWebService.tlog\CL.write.1.tlog
文件 2092 2017-07-04 17:14 TestWebService\Debug\TestWebService.tlog\li
文件 4360 2017-07-04 17:14 TestWebService\Debug\TestWebService.tlog\li
文件 1170 2017-07-04 17:14 TestWebService\Debug\TestWebService.tlog\li
文件 207 2017-07-04 17:14 TestWebService\Debug\TestWebService.tlog\TestWebService.lastbuildstate
文件 1453056 2017-07-04 17:14 TestWebService\Debug\vc140.idb
文件 2166784 2017-07-04 17:14 TestWebService\Debug\vc140.pdb
文件 1559 2017-07-04 09:50 TestWebService\ReadMe.txt
文件 4451046 2017-07-04 10:35 TestWebService\soapC.cpp
............此处省略14个文件信息
- 上一篇:数据结构与算法分析C++语言描述第二版课后答案
- 下一篇:MFC网络聊天工具
评论
共有 条评论