Support to use SOAP 1.1 or 1.2.

This commit is contained in:
Chunting Gu
2018-09-19 21:39:32 +08:00
parent ef252c9f74
commit f5fe4e67f7
13 changed files with 104 additions and 27 deletions
-1
View File
@@ -21,7 +21,6 @@ bool BookService::Handle(const webcc::SoapRequest& soap_request,
webcc::SoapResponse* soap_response) {
const std::string& operation = soap_request.operation();
soap_response->set_soapenv_ns(webcc::kSoapEnvNamespace);
soap_response->set_service_ns({
"ser",
"http://www.example.com/book/"
+2 -1
View File
@@ -7,8 +7,9 @@
class CalcClient {
public:
// NOTE: Parasoft's calculator service uses SOAP V1.1.
CalcClient(const std::string& host, const std::string& port)
: soap_client_(host, port) {
: soap_client_(host, port, webcc::kSoapV11) {
soap_client_.SetTimeout(5);
soap_client_.set_url("/glue/calculator");
-1
View File
@@ -52,7 +52,6 @@ bool CalcService::Handle(const webcc::SoapRequest& soap_request,
double result = calc(x, y);
soap_response->set_soapenv_ns(webcc::kSoapEnvNamespace);
soap_response->set_service_ns({
"cal",
"http://www.example.com/calculator/"