2 #include "xoap/SOAPEnvelope.h"
3 #include "xoap/SOAPBody.h"
18 toolbox::Event::Reference evtRef(
new toolbox::Event(cmdName,
this));
20 return createFSMReplyMsg(cmdName, stateName_);
25 "Failed to process " + cmdName, e);
30 "Failed to process " + cmdName +
" - Unknown exception");
34 const std::string
state)
36 xoap::MessageReference
msg = xoap::createMessage();
37 xoap::SOAPEnvelope env = msg->getSOAPPart().getEnvelope();
38 xoap::SOAPBody body = env.getBody();
39 std::string rStr = cmd +
"Response";
40 xoap::SOAPName rName = env.createName(rStr,
"xdaq",XDAQ_NS_URI);
41 xoap::SOAPBodyElement rElem = body.addBodyElement(rName);
42 xoap::SOAPName sName = env.createName(
"state",
"xdaq",XDAQ_NS_URI);
43 xoap::SOAPElement sElem = rElem.addChildElement(sName);
44 xoap::SOAPName aName = env.createName(
"stateName",
"xdaq",XDAQ_NS_URI);
47 sElem.addAttribute(aName, state);
xoap::MessageReference createFSMReplyMsg(const std::string cmd, const std::string state)
xoap::MessageReference processFSMCommand(const std::string cmdName)
EPStateMachine(log4cplus::Logger &logger)