29#include "WSProtocol.h"
30#include "sptk5/wsdl/protocol/BaseWebServiceProtocol.h"
32#include <sptk5/net/HttpResponseStatus.h>
33#include <sptk5/net/URL.h>
34#include <sptk5/wsdl/WSServices.h>
41 static xdoc::SNode getFirstChildElement(
const xdoc::SNode& element);
50 virtual std::shared_ptr<HttpAuthentication> getAuthentication() = 0;
55 static void RESTtoSOAP(
const URL& url,
const char* startOfMessage,
const xdoc::SNode& message);
57 static xdoc::SNode findRequestNode(
const xdoc::SNode& message,
const String& messageType);
59 xdoc::SNode processXmlContent(
const char* startOfMessage,
const xdoc::SNode& xmlContent)
const;
61 void processJsonContent(
const char* startOfMessage,
const xdoc::SNode& jsonContent,
63 String& contentType)
const;
75 const SHttpAuthentication& authentication,
bool requestIsJSON,
Definition: BaseWebServiceProtocol.h:40
String processMessage(Buffer &output, const xdoc::SNode &xmlContent, const xdoc::SNode &jsonContent, const SHttpAuthentication &authentication, bool requestIsJSON, HttpResponseStatus &httpResponseStatus, String &contentType) const
SOAP exception.
Definition: Exception.h:220
Definition: RequestInfo.h:42
Definition: TCPSocket.h:165
Abstract base class for different protocols used in Web Service servers.
Definition: WSProtocol.h:40
TCPSocket & socket()
Definition: WSProtocol.h:73
HttpHeaders & headers()
Definition: WSProtocol.h:82
Definition: WSServices.h:37
Definition: HttpResponseStatus.h:33