Does anyone use the gsoap
-
I need to do a project using the gsoap source, I write the client code in the gsoap system, I want to try that if the system network is disconnected and then connected, whether the data can be received inside the time. Anyother problem is how to test the how much percent of network is used when using gsoap to receive data from Web site? does anyone can help me ? thanks
-
I need to do a project using the gsoap source, I write the client code in the gsoap system, I want to try that if the system network is disconnected and then connected, whether the data can be received inside the time. Anyother problem is how to test the how much percent of network is used when using gsoap to receive data from Web site? does anyone can help me ? thanks
The code is following, I need to count how much bandwidth that this program uses. struct soap soapService; soap_init(&soapService); soapService.accept_timeout = 60; soapService.recv_timeout = 60; soapService.send_timeout = 60; soapService.connect_timeout = 60; int result = -1; _ns1__QueryPerson queryPerson; _ns1__QueryPersonResponse *queryPersonResponse; const char* s1 = "fish"; std::string stdstr(s1); queryPerson.name = &stdstr; queryPersonResponse = new _ns1__QueryPersonResponse(); const char* server = "http://192.168.140.127/classmate/Service.asmx"; result = soap_call___ns2__QueryPerson(&soapService, server, "", &queryPerson, queryPersonResponse); if(soapService.error) { soap_print_fault(&soapService,stderr); result = soapService.error; } if (result == SOAP_OK) { cout <<"收到数据:[" << endl; } else { printf("soap error ,errcode = %d\n", result); } soap_destroy(&soapService); soap_end(&soapService); soap_done(&soapService); delete queryPersonResponse;