⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dimeclt.cpp

📁 linux下开发的soap协议。建议大家学习学习!
💻 CPP
字号:
//	dimeclt.cpp//	Example client for simple image server//	Run from the command line with file name argument#include "soapH.h"#include "dime.nsmap"const char *endpoint = "http://websrv.cs.fsu.edu/~engelen/dimesrv.cgi";int main(int argc, char **argv){ struct soap soap;  xsd__base64Binary image;  char *name;  soap_init(&soap);  if (argc < 2)    name = "back.jpg";	// no command line argument: use default image  else    name = argv[1];	// this is the name of the image  if (soap_call_ns__getImage(&soap, endpoint, "", name, image))    soap_print_fault(&soap, stderr);  else    printf("Got image size=%d type=%s\n", image.__size, image.type?image.type:"");  soap_destroy(&soap);  soap_end(&soap);  return SOAP_OK;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -