00001 #ifndef _ots_SOAPUtilities_h 00002 #define _ots_SOAPUtilities_h 00003 00004 #include "xoap/MessageReference.h" 00005 00006 #include <string> 00007 00008 namespace ots 00009 { 00010 class SOAPCommand; 00011 class SOAPParameters; 00012 00013 class SOAPUtilities 00014 { 00015 public: 00016 00017 static xoap::MessageReference makeSOAPMessageReference(SOAPCommand soapCommand); 00018 static xoap::MessageReference makeSOAPMessageReference(std::string command); 00019 static xoap::MessageReference makeSOAPMessageReference(std::string command, SOAPParameters parameters); 00020 static xoap::MessageReference makeSOAPMessageReference(std::string command, std::string fileName); 00021 00022 static void addParameters (xoap::MessageReference& message, SOAPParameters parameters); 00023 00024 static SOAPCommand translate (const xoap::MessageReference& message); 00025 private: 00026 SOAPUtilities(void); 00027 ~SOAPUtilities(void); 00028 00029 }; 00030 } 00031 #endif