1
#include "soapH.h" /* include generated proxy and SOAP support */
3
int main(int argc, char **argv)
10
{ fprintf(stderr, "Usage: quote <ticker>\n");
14
if (soap_call_ns__getQuote(&soap, "http://services.xmethods.net/soap", "", sym, &q) == 0)
15
printf("\nCompany - %s Quote - %f\n", sym, q);
17
soap_print_fault(&soap, stderr);
23
/* The namespace mapping table is required and associates namespace prefixes with namespace names: */
24
struct Namespace namespaces[] =
26
{"SOAP-ENV", "http://schemas.xmlsoap.org/soap/envelope/", "http://www.w3.org/*/soap-envelope", NULL}, /* MUST be the first */
27
{"SOAP-ENC", "http://schemas.xmlsoap.org/soap/encoding/", "http://www.w3.org/*/soap-encoding", NULL}, /* MUST be the second */
28
{"xsi", "http://www.w3.org/1999/XMLSchema-instance", "http://www.w3.org/*/XMLSchema-instance", NULL}, /* MUST be the third */
29
{"xsd", "http://www.w3.org/1999/XMLSchema", "http://www.w3.org/*/XMLSchema", NULL},
30
{"ns", "urn:xmethods-delayed-quotes"}, /* Method namespace URI */
31
{NULL, NULL, NULL, NULL}