00001
00024
00025
00026
00027
00029
00030
00031
00032
00033
00034
00035
00036 #if !defined(SOAPONHTTP_H)
00037 #define SOAPONHTTP_H
00038
00039 #if _MSC_VER > 1000
00040 #pragma once
00041 #endif // _MSC_VER > 1000
00042
00043 #if !defined(SOAPonProtocol_H)
00044 #include "SOAPonProtocol.h"
00045 #endif // !defined(SOAPonProtocol_H)
00046
00047 #ifndef _MAP_
00048 #include <map>
00049 #endif // _MAP_
00050
00051 #ifndef SOCKETADDRESS_H_
00052 #include "SocketAddress.h"
00053 #endif // SOCKETADDRESS_H_
00054
00055 class SOAPElement;
00056 class SOAPMethod;
00057
00058 class SOAPonHTTP : SOAPonProtocol
00059 {
00060 public:
00061
00062 SOAPonHTTP();
00063 virtual ~SOAPonHTTP();
00064
00065
00066
00067
00068
00069 virtual bool getMethodDetails( const std::string& KszMessage,
00070 std::string& szObjectName, std::string& szMethodName,
00071 SOAPElement& theCall );
00072
00073
00074
00075
00076
00077
00078
00079
00080 void setHostAndPort( std::string szHost, long nPort = 80 );
00081
00082
00083
00084
00085
00086 virtual std::string getSendableResponse(
00087 const std::string& szSOAPMessage, bool bIsFault = false );
00088
00089
00090
00091
00092
00093 virtual std::string send(
00094 const std::string& szClassName, SOAPMethod& aMethod );
00095
00096 protected:
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106 virtual std::string getSendableMessage(
00107 const std::string& szSOAPMessage,
00108 const std::string& szClassName,
00109 const std::string& szMethodName );
00110
00111 private:
00112
00113
00114
00115 SocketAddress m_socketAddress;
00116 };
00117
00118 #endif // !defined(SOAPONHTTP_H)