00001
00018 #ifndef WSUTIL_H
00019 #define WSUTIL_H
00020
00021 #include <iostream>
00022
00023
00024
00025
00026 #define RCVBUFSIZE 1024
00027
00028
00043 class WSUtil{
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
00082 static std::string SOAPify( std::string theXmlString);
00083
00093 static std::string deSOAPify( std::string theXmlString);
00094
00111 static std::string createSOAPMessage(int numInputs, std::string solverAddress,
00112 std::string postURI, std::string smethod, std::string* msInputs,
00113 std::string* msInputNames, std::string sSoapAction);
00114
00131 static std::string createFormDataUpload(std::string solverAddress, std::string postURI,
00132 std::string fileName, std::string theFile, std::string boundaryName);
00133
00142 static std::string getOSxL(std::string soapstring, std::string serviceMethod);
00143 };
00144 #endif
00145