quote2.c

来自「linux下简单对象应用协议的开发库」· C语言 代码 · 共 31 行

C
31
字号
/*	getQuote example with asynchronous SOAP messaging*/#include "soapH.h"int main(){ struct soap soap;  struct ns__getQuoteResponse r;  soap_init(&soap);  if (soap_send_ns__getQuote(&soap, "http://services.xmethods.net/soap", "", "IBM"))    soap_print_fault(&soap, stderr);  else if (soap_recv_ns__getQuoteResponse(&soap, &r))    soap_print_fault(&soap, stderr);  else    printf("IBM: %f\n", r.Result);  soap_end(&soap);  soap_done(&soap);  return 0;}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"},		/* MUST be third */  {"xsd", "http://www.w3.org/1999/XMLSchema"},  {"ns", "urn:xmethods-delayed-quotes"},	/* Method namespace URI */  {NULL, NULL}};

⌨️ 快捷键说明

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