⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 psoap_8h-source.html

📁 pwlib开发文档
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"><title>psoap.h Source File</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- Generated by Doxygen 1.2.18 --><center><a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center><hr><h1>psoap.h</h1><a href="psoap_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*</span>00002 <span class="comment"> * psoap.h</span>00003 <span class="comment"> *</span>00004 <span class="comment"> * SOAP client / server classes.</span>00005 <span class="comment"> *</span>00006 <span class="comment"> * Portable Windows Library</span>00007 <span class="comment"> *</span>00008 <span class="comment"> * Copyright (c) 2003 Andreas Sikkema</span>00009 <span class="comment"> *</span>00010 <span class="comment"> * The contents of this file are subject to the Mozilla Public License</span>00011 <span class="comment"> * Version 1.0 (the "License"); you may not use this file except in</span>00012 <span class="comment"> * compliance with the License. You may obtain a copy of the License at</span>00013 <span class="comment"> * http://www.mozilla.org/MPL/</span>00014 <span class="comment"> *</span>00015 <span class="comment"> * Software distributed under the License is distributed on an "AS IS"</span>00016 <span class="comment"> * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See</span>00017 <span class="comment"> * the License for the specific language governing rights and limitations</span>00018 <span class="comment"> * under the License.</span>00019 <span class="comment"> *</span>00020 <span class="comment"> * The Original Code is Portable Windows Library.</span>00021 <span class="comment"> *</span>00022 <span class="comment"> * The Initial Developer of the Original Code is Andreas Sikkema</span>00023 <span class="comment"> *</span>00024 <span class="comment"> * Contributor(s): ______________________________________.</span>00025 <span class="comment"> *</span>00026 <span class="comment"> * $Log: psoap.h,v $</span>00027 <span class="comment"> * Revision 1.4  2003/03/31 06:21:19  craigs</span>00028 <span class="comment"> * Split the expat wrapper from the XML file handling to allow reuse of the parser</span>00029 <span class="comment"> *</span>00030 <span class="comment"> * Revision 1.3  2003/02/09 23:31:39  robertj</span>00031 <span class="comment"> * Added referention PString's for efficiency.</span>00032 <span class="comment"> *</span>00033 <span class="comment"> * Revision 1.2  2003/02/09 23:22:37  robertj</span>00034 <span class="comment"> * Fixed spelling errors, and setting return values, thanks Andreas Sikkema</span>00035 <span class="comment"> *</span>00036 <span class="comment"> * Revision 1.1  2003/02/04 22:46:48  robertj</span>00037 <span class="comment"> * Added basic SOAP support, thanks Andreas Sikkema</span>00038 <span class="comment"> *</span>00039 <span class="comment"> */</span>00040 00041 00042 <span class="preprocessor">#ifndef _PSOAP_H</span>00043 <span class="preprocessor"></span><span class="preprocessor">#define _PSOAP_H</span>00044 <span class="preprocessor"></span>00045 <span class="preprocessor">#ifdef P_USE_PRAGMA</span>00046 <span class="preprocessor"></span><span class="preprocessor">#pragma interface</span>00047 <span class="preprocessor"></span><span class="preprocessor">#endif</span>00048 <span class="preprocessor"></span>00049 00050 <span class="preprocessor">#if P_EXPAT</span>00051 <span class="preprocessor"></span>00052 <span class="preprocessor">#include &lt;<a class="code" href="pxml_8h.html">ptclib/pxml.h</a>&gt;</span>00053 <span class="preprocessor">#include &lt;<a class="code" href="http_8h.html">ptclib/http.h</a>&gt;</span>00054 00055 00056 <span class="preprocessor">#define DEFAULT_SOAP_URL "/soap"</span>00057 <span class="preprocessor"></span>00058 00064 00065 <span class="keyword">class </span>PSOAPMessage : <span class="keyword">public</span> <a class="code" href="classPXML.html">PXML</a>00066 {00067   <a class="code" href="object_8h.html#a27">PCLASSINFO</a>(PSOAPMessage, <a class="code" href="classPXML.html">PXML</a>);00068 <span class="keyword">public</span>:00069   00071   PSOAPMessage( <span class="keywordtype">int</span> options = <a class="code" href="classPXMLParser.html#s5s0">PXMLParser::Indent</a> + <a class="code" href="classPXMLParser.html#s5s1">PXMLParser::NewLineAfterElement</a> );00072 00074   PSOAPMessage( <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; method, <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; nameSpace );00075 00077   <span class="keywordtype">void</span> SetMethod( <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; name, <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; nameSpace );00078 00080   <span class="keywordtype">void</span> GetMethod( <a class="code" href="classPString.html">PString</a> &amp; name, <a class="code" href="classPString.html">PString</a> &amp; nameSpace );00081   00083   <span class="keywordtype">void</span> AddParameter( <a class="code" href="classPString.html">PString</a> name, <a class="code" href="classPString.html">PString</a> type, <a class="code" href="classPString.html">PString</a> value );00084 00086   <span class="keywordtype">void</span> AddParameter( <a class="code" href="classPXMLElement.html">PXMLElement</a>* parameter, BOOL dirty = TRUE );00087 00089   BOOL GetParameter( <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; name, <a class="code" href="classPString.html">PString</a> &amp; value );00090 00092   BOOL GetParameter( <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; name, <span class="keywordtype">int</span> &amp; value );00093 00095   <a class="code" href="classPXMLElement.html">PXMLElement</a>* GetParameter( <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; name );00096 00098   <span class="keywordtype">void</span> <a class="code" href="classPXML.html#a20">PrintOn</a>(ostream &amp; strm) <span class="keyword">const</span>;00099 00101   <a class="code" href="classPString.html">PString</a> AsString( <span class="keywordtype">void</span> );00102   00104   BOOL <a class="code" href="classPXML.html#a5">Load</a>(<span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; str);00105 00107   <span class="keyword">enum</span> 00108   {00110     NoFault,00112     VersionMismatch,00114     MustUnderstand,00116     Client,00118     Server00119   };00120 00121   PINDEX  GetFaultCode()<span class="keyword"> const                     </span>{ <span class="keywordflow">return</span> faultCode; }00122   <a class="code" href="classPString.html">PString</a> GetFaultText()<span class="keyword"> const                     </span>{ <span class="keywordflow">return</span> faultText; }00123   <span class="keywordtype">void</span> SetFault( PINDEX code, <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; text );00124 00125 <span class="keyword">private</span>:00126   <a class="code" href="classPXMLElement.html">PXMLElement</a>* pSOAPBody;00127   <a class="code" href="classPXMLElement.html">PXMLElement</a>* pSOAPMethod;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -