00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00031
00032 #pragma once
00033
00034 #include "../api_network.h"
00035
00036 class CL_DomDocument;
00037 class CL_DomElement;
00038
00042 class CL_API_NETWORK CL_SoapHelp
00043 {
00046
00047 public:
00048
00052
00053 public:
00055
00056 static CL_StringRef soap11_ns;
00057
00059
00060 static CL_StringRef soap12_ns;
00061
00063
00064 static CL_StringRef xsi_ns;
00065
00067
00068 static CL_StringRef xsd_ns;
00069
00071
00072 static CL_StringRef xml_ns;
00073
00077
00078 public:
00079 static CL_DomDocument create_soap11_sender_fault(
00080 const CL_StringRef &reason,
00081 const CL_StringRef &lang = cl_text("en"));
00082
00083 static CL_DomDocument create_soap12_sender_fault(
00084 const CL_StringRef &reason,
00085 const CL_StringRef &lang = cl_text("en"));
00086
00087 static CL_DomDocument create_soap11_receiver_fault(
00088 const CL_StringRef &reason,
00089 const CL_StringRef &lang = cl_text("en"));
00090
00091 static CL_DomDocument create_soap12_receiver_fault(
00092 const CL_StringRef &reason,
00093 const CL_StringRef &lang = cl_text("en"));
00094
00095 static CL_DomDocument create_soap11_version_mismatch(
00096 const CL_StringRef &reason,
00097 const CL_StringRef &lang = cl_text("en"),
00098 bool supports_soap11 = true,
00099 bool supports_soap12 = true);
00100
00101 static CL_DomDocument create_soap12_version_mismatch(
00102 const CL_StringRef &reason,
00103 const CL_StringRef &lang = cl_text("en"),
00104 bool supports_soap11 = true,
00105 bool supports_soap12 = true);
00106
00107 static CL_DomDocument create_soap11_message(
00108 CL_DomElement &out_envelope,
00109 CL_DomElement &out_header,
00110 CL_DomElement &out_body);
00111
00112 static CL_DomDocument create_soap11_message(
00113 CL_DomElement &out_envelope,
00114 CL_DomElement &out_body);
00115
00116 static CL_DomDocument create_soap12_message(
00117 CL_DomElement &out_envelope,
00118 CL_DomElement &out_header,
00119 CL_DomElement &out_body);
00120
00121 static CL_DomDocument create_soap12_message(
00122 CL_DomElement &out_envelope,
00123 CL_DomElement &out_body);
00124
00125 static bool get_soap11_elements(
00126 CL_DomDocument &document,
00127 CL_DomElement &out_envelope,
00128 CL_DomElement &out_header,
00129 CL_DomElement &out_body,
00130 CL_DomElement &out_fault);
00131
00132 static bool get_soap12_elements(
00133 CL_DomDocument &document,
00134 CL_DomElement &out_envelope,
00135 CL_DomElement &out_header,
00136 CL_DomElement &out_body,
00137 CL_DomElement &out_fault);
00138
00142
00143 private:
00145 };
00146