Improve the response result composition.

This commit is contained in:
Chunting Gu
2018-09-27 17:05:29 +08:00
parent 76417c3703
commit b02ea902c9
8 changed files with 128 additions and 67 deletions
+1 -3
View File
@@ -58,9 +58,7 @@ bool CalcService::Handle(const webcc::SoapRequest& soap_request,
});
soap_response->set_operation(soap_request.operation());
soap_response->set_result_name("Result");
soap_response->set_result_moved(std::to_string(result), false);
soap_response->set_simple_result("Result", std::to_string(result), false);
return true;
}