Use HttpClient as member variable inside RestClient and SoapClient.
This commit is contained in:
@@ -29,7 +29,7 @@ class BookClientBase {
|
||||
BookClientBase(const std::string& host, const std::string& port,
|
||||
int timeout_seconds)
|
||||
: rest_client_(host, port) {
|
||||
rest_client_.set_timeout_seconds(timeout_seconds);
|
||||
rest_client_.SetTimeout(timeout_seconds);
|
||||
}
|
||||
|
||||
virtual ~BookClientBase() = default;
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
#include <functional>
|
||||
#include <string>
|
||||
|
||||
#include "pugixml/pugixml.hpp"
|
||||
#include "webcc/soap_client.h"
|
||||
|
||||
#include "example/common/book.h"
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -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("/glue/calculator");
|
||||
soap_client_.set_service_ns({
|
||||
|
||||
Reference in New Issue
Block a user