// Client.cpp : Defines the entry point for the console application. // #include "soapH.h" // include generated proxy and SOAP support #include "ns.nsmap" int main(int argc, char* argv[]) { struct soap soap; // allocate gSOAP runtime environment double a = 3.0; double b = 5.0; double result = 0.0; soap_init(&soap); // must initialize if (soap_call_ns__add(&soap, "http://localhost:44444", NULL, a, b, result) == 0) printf("\na = %lf, b = %lf, result = %lf\n", a, b, result); else { soap_print_fault(&soap, stderr); soap_print_fault_location(&soap, stderr); } return 0; }