Use HttpClient as member variable inside RestClient and SoapClient.

This commit is contained in:
Chunting Gu
2018-09-06 14:18:02 +08:00
parent d2e2935f9d
commit 921defc0e3
16 changed files with 98 additions and 107 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ class CalcClient {
public:
CalcClient(const std::string& host, const std::string& port)
: soap_client_(host, port) {
soap_client_.set_timeout_seconds(5);
soap_client_.SetTimeout(5);
soap_client_.set_url("/calculator");
soap_client_.set_service_ns({