/home/coin/SVN-release/OS-2.4.1/OS/src/OSAgent/OSWSUtil.h

Go to the documentation of this file.
00001 /* $Id: OSWSUtil.h 4292 2011-09-21 05:47:18Z kmartin $ */
00017 #ifndef WSUTIL_H
00018 #define WSUTIL_H
00019 
00020 #include <iostream>
00021 
00022 
00023 
00024 
00025 #define RCVBUFSIZE 1024   /* Size of receive buffer */
00026 
00027 
00042 class WSUtil
00043 {
00044 
00045 public:
00046 
00052     WSUtil();
00053 
00058     ~WSUtil();
00059 
00070     static std::string sendSOAPMessage(std::string theSOAP, std::string serviceIP, unsigned int servicePortNumber);
00071 
00072 
00083     static std::string SOAPify( std::string theXmlString, bool useCDATA);
00084 
00095     static std::string deSOAPify( std::string theXmlString, bool useCDATA);
00096 
00113     static std::string createSOAPMessage(int numInputs, std::string solverAddress,
00114                                          std::string postURI, std::string smethod, std::string* msInputs,
00115                                          std::string* msInputNames, std::string sSoapAction);
00116 
00133     static std::string createFormDataUpload(std::string solverAddress, std::string postURI,
00134                                             std::string fileName,  std::string theFile, std::string boundaryName);
00135 
00144     static std::string getOSxL(std::string soapstring, std::string serviceMethod);
00145 }; //class WSUtil
00146 #endif
00147 

Generated on Thu Nov 10 03:05:47 2011 by  doxygen 1.4.7