From fb37d759a07ca5adcf524d93d4650b1b872f92b7 Mon Sep 17 00:00:00 2001 From: Adam Gu Date: Thu, 12 Apr 2018 09:09:56 +0800 Subject: [PATCH] Update SOAP server tutorial. --- README.md | 5 +++-- doc/SoapServerTutorial.md | 8 +++++--- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 0f29f0b..62823cf 100644 --- a/README.md +++ b/README.md @@ -14,8 +14,9 @@ A lightweight C++ REST and SOAP client and server library based on Boost.Asio. - C++11 - Boost 1.66+ -- pugixml (already included in the source tree) (SOAP only) + +If enable SOAP support, **pugixml** is needed to parse and compose XML strings. ## Build -TODO +The build system is CMake. diff --git a/doc/SoapServerTutorial.md b/doc/SoapServerTutorial.md index bcf44e0..5322b89 100644 --- a/doc/SoapServerTutorial.md +++ b/doc/SoapServerTutorial.md @@ -15,7 +15,9 @@ public: }; ``` -The `Handle` method has two parameters, one for request (input), one for response (output). The implementation is quite straightforward: +The `Handle` method has two parameters, one for request (input), one for response (output). + +The implementation is quite straightforward: - Get operation (e.g., add) from request; - Get parameters (e.g., x and y) from request; @@ -97,7 +99,7 @@ POST /calculator HTTP/1.1 Registering multiple services to a server is allowed, but the URL must be unique for each service. -To invoke the `add` operation of the calculator service, the client HTTP request will be: +To invoke the `add` operation of the calculator service, an example of the client HTTP request would be: ``` POST /calculator HTTP/1.1 Content-Type: text/xml; charset=utf-8 @@ -132,4 +134,4 @@ Content-Length: 262 ``` -See [example/soap_calc_server](example/soap_calc_server) for the full example. +See [example/soap_calc_server](https://github.com/sprinfall/webcc/tree/master/example/soap_calc_server) for the full example.