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

📄 quote.c

📁 linux下简单对象应用协议的开发库
💻 C
字号:
#include "soapH.h"	/* include generated proxy and SOAP support */int main(int argc, char **argv){ struct soap soap;  float q;  char *sym;  if (argc > 1)    sym = argv[1];  else  { fprintf(stderr, "Usage: quote <ticker>\n");    exit(1);  }  soap_init(&soap);  if (soap_call_ns__getQuote(&soap, "http://services.xmethods.net/soap", "", sym, &q) == 0)    printf("\nCompany - %s    Quote - %f\n", sym, q);  else    soap_print_fault(&soap, stderr);  soap_end(&soap);  soap_done(&soap);  return 0;}/* The namespace mapping table is required and associates namespace prefixes with namespace names: */struct Namespace namespaces[] ={  {"SOAP-ENV", "http://schemas.xmlsoap.org/soap/envelope/"},	/* MUST be first */  {"SOAP-ENC", "http://schemas.xmlsoap.org/soap/encoding/"},	/* MUST be second */  {"xsi", "http://www.w3.org/1999/XMLSchema-instance", "http://www.w3.org/*/XMLSchema-instance"},	/* MUST be third */  {"xsd", "http://www.w3.org/1999/XMLSchema", "http://www.w3.org/*/XMLSchema"},  {"ns", "urn:xmethods-delayed-quotes"},	/* Method namespace URI */  {NULL, NULL}};

⌨️ 快捷键说明

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