dimeclt.cpp

来自「linux下开发的soap协议。建议大家学习学习!」· C++ 代码 · 共 27 行

CPP
27
字号
//	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 + =
减小字号Ctrl + -
显示快捷键?