Add SoapAsyncClient.

This commit is contained in:
Adam Gu
2018-08-03 16:59:23 +08:00
parent 6809ab7d2a
commit ab781a691f
11 changed files with 211 additions and 34 deletions
+4 -2
View File
@@ -23,7 +23,8 @@ BookClient::BookClient(const std::string& host, const std::string& port)
soap_client_.set_indent_str(" ");
}
bool BookClient::CreateBook(const std::string& title, double price, std::string* id) {
bool BookClient::CreateBook(const std::string& title, double price,
std::string* id) {
PrintSeparateLine();
std::cout << "CreateBook: " << title << ", " << price << std::endl;
@@ -91,7 +92,8 @@ bool BookClient::Call0(const std::string& operation, std::string* result_str) {
}
bool BookClient::Call1(const std::string& operation, webcc::SoapParameter&& parameter,
bool BookClient::Call1(const std::string& operation,
webcc::SoapParameter&& parameter,
std::string* result_str) {
std::vector<webcc::SoapParameter> parameters{
{ std::move(parameter) }