11 #include "xdaq/NamespaceURI.h"
12 #include "xoap/MessageFactory.h"
13 #include "xoap/Method.h"
14 #include "xoap/SOAPBody.h"
15 #include "xoap/SOAPEnvelope.h"
16 #include "xoap/SOAPName.h"
17 #include "xoap/SOAPPart.h"
18 #include "xoap/domutils.h"
20 #include "xdaq2rc/version.h"
21 #include "xdaq2rc/SOAPParameterExtractor.hh"
33 xdaq2rc::SOAPParameterExtractor soapParameterExtractor(app);
34 command = soapParameterExtractor.extractParameters(msg);
39 const string currentState) {
40 xoap::MessageReference reply;
44 reply = xoap::createMessage();
45 xoap::SOAPEnvelope envelope = reply->getSOAPPart().getEnvelope();
46 xoap::SOAPName responseName = envelope.createName(
47 commandName +
"Response",
"xdaq", XDAQ_NS_URI);
48 xoap::SOAPBodyElement responseElem = envelope.getBody().addBodyElement(
52 xoap::SOAPName stateName = envelope.createName(
"state",
"xdaq",
54 xoap::SOAPElement stateElem = responseElem.addChildElement(stateName);
55 xoap::SOAPName attributeName = envelope.createName(
"stateName",
"xdaq",
57 stateElem.addAttribute(attributeName, currentState);
61 "Failed to create FSM SOAP response message for command '"
62 + commandName +
"' and current state '" + currentState
std::string extractParameters(xoap::MessageReference, xdaq::Application *)
xoap::MessageReference createFsmSoapResponseMsg(const std::string commandName, const std::string currentState)