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;