// 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 char* ID = "root"; char* Password_True = "pass"; char* Password_False = "foofoo"; char* result; soap_init(&soap); // must initialize if (soap_call_ns__certifyUser(&soap, "http://127.0.0.1:44444", NULL, ID, Password_True, result) == 0) printf("\nID = %s, Password = %s, result = %s\n\n", ID, Password_True, result); else { soap_print_fault(&soap, stderr); soap_print_fault_location(&soap, stderr); printf("\n1: SOAP faultcode = %s\n", *soap_faultcode(&soap)); printf("2: SOAP faultstring = %s\n", *soap_faultstring(&soap)); printf("3: SOAP faultdetail = %s\n\n", *soap_faultdetail(&soap)); } if (soap_call_ns__certifyUser(&soap, "http://127.0.0.1:44444", NULL, ID, Password_False, result) == 0) printf("\nID = %s, Password = %s, result = %s\n\n", ID, Password_False, result); else { printf("\n1: SOAP faultcode = %s\n", *soap_faultcode(&soap)); printf("2: SOAP faultstring = %s\n", *soap_faultstring(&soap)); printf("3: SOAP faultdetail = %s\n\n", *soap_faultdetail(&soap)); soap_print_fault(&soap, stderr); soap_print_fault_location(&soap, stderr); } return 0; }