You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
729 B
C
34 lines
729 B
C
![]()
7 years ago
|
#ifndef WEBCC_SOAP_REQUEST_H_
|
||
|
#define WEBCC_SOAP_REQUEST_H_
|
||
![]()
8 years ago
|
|
||
![]()
7 years ago
|
#include <string>
|
||
![]()
8 years ago
|
#include <vector>
|
||
![]()
7 years ago
|
|
||
![]()
7 years ago
|
#include "webcc/soap_message.h"
|
||
![]()
8 years ago
|
|
||
![]()
7 years ago
|
namespace webcc {
|
||
![]()
8 years ago
|
|
||
|
// SOAP request.
|
||
|
// Used to compose the SOAP request envelope XML which will be sent as the HTTP
|
||
|
// request body.
|
||
![]()
8 years ago
|
class SoapRequest : public SoapMessage {
|
||
![]()
7 years ago
|
public:
|
||
![]()
8 years ago
|
void AddParameter(const Parameter& parameter);
|
||
![]()
8 years ago
|
|
||
![]()
8 years ago
|
void AddParameter(Parameter&& parameter);
|
||
|
|
||
![]()
8 years ago
|
// Get parameter value by key.
|
||
![]()
8 years ago
|
const std::string& GetParameter(const std::string& key) const;
|
||
![]()
8 years ago
|
|
||
![]()
7 years ago
|
protected:
|
||
![]()
8 years ago
|
void ToXmlBody(pugi::xml_node xbody) override;
|
||
|
bool FromXmlBody(pugi::xml_node xbody) override;
|
||
![]()
8 years ago
|
|
||
![]()
7 years ago
|
private:
|
||
![]()
8 years ago
|
std::vector<Parameter> parameters_;
|
||
|
};
|
||
|
|
||
![]()
7 years ago
|
} // namespace webcc
|
||
![]()
8 years ago
|
|
||
![]()
7 years ago
|
#endif // WEBCC_SOAP_REQUEST_H_
|