BeeeOn Gateway  v2020.3.1-2-g6f737dc
Platform to interconnect the IoT world
SOAPMessage.h
1 #pragma once
2 
3 #include <string>
4 #include <sstream>
5 
6 #include <Poco/Net/HTTPRequest.h>
7 #include <Poco/XML/XMLWriter.h>
8 
9 namespace BeeeOn {
10 
11 class SOAPMessage {
12 public:
13  SOAPMessage();
14  ~SOAPMessage();
15 
16  void setAction(const std::string& action);
17  Poco::XML::XMLWriter& bodyWriter();
18  void prepare(Poco::Net::HTTPRequest& request);
19 
20  std::string toString() const;
21 
22 private:
23  std::string m_action;
24  std::stringstream m_stream;
25  Poco::XML::XMLWriter m_writer;
26  bool m_writerDone;
27 };
28 
29 }
Definition: SOAPMessage.h:11