Move soap specific definitions to separate files
parent
cff4888182
commit
d2e2935f9d
@ -0,0 +1,13 @@
|
||||
#include "webcc/soap_globals.h"
|
||||
|
||||
namespace webcc {
|
||||
|
||||
const std::string kSoapAction = "SOAPAction";
|
||||
|
||||
// According to www.w3.org when placing SOAP messages in HTTP bodies, the HTTP
|
||||
// Content-type header must be chosen as "application/soap+xml" [RFC 3902].
|
||||
// But in practice, many web servers cannot understand it.
|
||||
// See: https://www.w3.org/TR/2007/REC-soap12-part0-20070427/#L26854
|
||||
const std::string kTextXmlUtf8 = "text/xml; charset=utf-8";
|
||||
|
||||
} // namespace webcc
|
@ -0,0 +1,17 @@
|
||||
#ifndef WEBCC_SOAP_GLOBALS_H_
|
||||
#define WEBCC_SOAP_GLOBALS_H_
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace webcc {
|
||||
|
||||
// -----------------------------------------------------------------------------
|
||||
// Constants
|
||||
|
||||
extern const std::string kSoapAction;
|
||||
|
||||
extern const std::string kTextXmlUtf8;
|
||||
|
||||
} // namespace webcc
|
||||
|
||||
#endif // WEBCC_SOAP_GLOBALS_H_
|
Loading…
Reference in New Issue