2
// must include envH.h first: it declares the SOAP Header and Fault structures
3
// shared among the clients and services
6
// include the quote and rate stubs and calc skeleton
11
// include the XML namespace mapping tables
12
#include "quote.nsmap"
16
int main(int argc, char *argv[])
17
{ struct soap *soap = soap_new();
19
return calc_serve(soap);
22
if (soap_call_ns__getQuote(soap, NULL, NULL, argv[1], &q))
23
soap_print_fault(soap, stderr);
27
if (soap_call_ns__getRate(soap, NULL, NULL, "us", argv[2], &r))
28
soap_print_fault(soap, stderr);
32
printf("%s: %g\n", argv[1], q);
41
int ns__add(struct soap *soap, double a, double b, double *result)
46
int ns__sub(struct soap *soap, double a, double b, double *result)
51
int ns__mul(struct soap *soap, double a, double b, double *result)
56
int ns__div(struct soap *soap, double a, double b, double *result)