soap_help.h

Go to the documentation of this file.
00001 /*
00002 **  ClanLib SDK
00003 **  Copyright (c) 1997-2009 The ClanLib Team
00004 **
00005 **  This software is provided 'as-is', without any express or implied
00006 **  warranty.  In no event will the authors be held liable for any damages
00007 **  arising from the use of this software.
00008 **
00009 **  Permission is granted to anyone to use this software for any purpose,
00010 **  including commercial applications, and to alter it and redistribute it
00011 **  freely, subject to the following restrictions:
00012 **
00013 **  1. The origin of this software must not be misrepresented; you must not
00014 **     claim that you wrote the original software. If you use this software
00015 **     in a product, an acknowledgment in the product documentation would be
00016 **     appreciated but is not required.
00017 **  2. Altered source versions must be plainly marked as such, and must not be
00018 **     misrepresented as being the original software.
00019 **  3. This notice may not be removed or altered from any source distribution.
00020 **
00021 **  Note: Some of the libraries ClanLib may link to may have additional
00022 **  requirements or restrictions.
00023 **
00024 **  File Author(s):
00025 **
00026 **    Magnus Norddahl
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 

Generated on Thu Dec 3 02:39:32 2009 for ClanLib by  doxygen 1.4.6