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

📄 psoap_8h-source.html

📁 pwlib开发文档
💻 HTML
📖 第 1 页 / 共 2 页
字号:
00128   <a class="code" href="classPString.html">PString</a> faultText;00129   PINDEX  faultCode;00130 };00131 00132 00138 <span class="keyword">class </span>PSOAPServerRequestResponse : <span class="keyword">public</span> <a class="code" href="classPObject.html">PObject</a> 00139 {00140   <a class="code" href="object_8h.html#a27">PCLASSINFO</a>( PSOAPServerRequestResponse, <a class="code" href="classPObject.html">PObject</a> );00141   <span class="keyword">public</span>:00142     PSOAPServerRequestResponse( PSOAPMessage &amp; _request )00143       : request( _request ) { }00144 00145     PSOAPMessage &amp; request;00146     PSOAPMessage response;00147 };00148 00149 00151 <span class="keyword">class </span>PSOAPServerMethod : <span class="keyword">public</span> <a class="code" href="classPString.html">PString</a>00152 {00153   <a class="code" href="object_8h.html#a27">PCLASSINFO</a>( PSOAPServerMethod, <a class="code" href="classPString.html">PString</a> );00154   <span class="keyword">public</span>:00155     PSOAPServerMethod( <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; name ) 00156       : <a class="code" href="classPString.html">PString</a>( name ) { }00157 00158     <a class="code" href="classPNotifier.html">PNotifier</a> methodFunc;00159 };00160 00161 <a class="code" href="lists_8h.html#a6">PSORTED_LIST</a>(PSOAPServerMethodList, PSOAPServerMethod);00162 00163 00165 <span class="keyword">class </span>PSOAPServerResource : <span class="keyword">public</span> <a class="code" href="classPHTTPResource.html">PHTTPResource</a>00166 {00167   <a class="code" href="object_8h.html#a27">PCLASSINFO</a>( PSOAPServerResource, <a class="code" href="classPHTTPResource.html">PHTTPResource</a> );00168   <span class="keyword">public</span>:00169     PSOAPServerResource();00170     PSOAPServerResource(00171       <span class="keyword">const</span> <a class="code" href="classPHTTPAuthority.html">PHTTPAuthority</a> &amp; auth    <span class="comment">// Authorisation for the resource.</span>00172     );00173     PSOAPServerResource(00174       <span class="keyword">const</span> <a class="code" href="classPURL.html">PURL</a> &amp; url               <span class="comment">// Name of the resource in URL space.</span>00175     );00176     PSOAPServerResource(00177       <span class="keyword">const</span> <a class="code" href="classPURL.html">PURL</a> &amp; url,              <span class="comment">// Name of the resource in URL space.</span>00178       <span class="keyword">const</span> <a class="code" href="classPHTTPAuthority.html">PHTTPAuthority</a> &amp; auth    <span class="comment">// Authorisation for the resource.</span>00179     );00180 00181     <span class="comment">// overrides from PHTTPResource</span>00182     BOOL <a class="code" href="classPHTTPResource.html#a16">LoadHeaders</a>( <a class="code" href="classPHTTPRequest.html">PHTTPRequest</a> &amp; request );00183     BOOL <a class="code" href="classPHTTPResource.html#a12">OnPOSTData</a>( <a class="code" href="classPHTTPRequest.html">PHTTPRequest</a> &amp; request, <span class="keyword">const</span> <a class="code" href="classPStringToString.html">PStringToString</a> &amp; data );00184 00185     <span class="comment">// new functions</span>00186     <span class="keyword">virtual</span> BOOL OnSOAPRequest( <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; body, <a class="code" href="classPString.html">PString</a> &amp; reply );00187     <span class="keyword">virtual</span> BOOL SetMethod( <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; methodName, <span class="keyword">const</span> <a class="code" href="classPNotifier.html">PNotifier</a> &amp; func );00188     BOOL OnSOAPRequest( <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; methodName, PSOAPMessage &amp; request, <a class="code" href="classPString.html">PString</a> &amp; reply );00189 00190     <span class="keyword">virtual</span> PSOAPMessage FormatFault( PINDEX code, <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> &amp; str );00191 00193 00196     <span class="keywordtype">void</span> SetSOAPAction( <a class="code" href="classPString.html">PString</a> saction ) { soapAction = saction; }00197 00198   <span class="keyword">protected</span>:00199     <a class="code" href="classPMutex.html">PMutex</a> methodMutex;00200     PSOAPServerMethodList methodList;00201   <span class="keyword">private</span>:00202     <a class="code" href="classPString.html">PString</a> soapAction;00203 };00204 00205 00211 <span class="keyword">class </span>PSOAPClient : <span class="keyword">public</span> <a class="code" href="classPObject.html">PObject</a>00212 {00213   <a class="code" href="object_8h.html#a27">PCLASSINFO</a>( PSOAPClient, <a class="code" href="classPObject.html">PObject</a> );00214   <span class="keyword">public</span>:00215 00216     PSOAPClient( <span class="keyword">const</span> <a class="code" href="classPURL.html">PURL</a> &amp; url );00217 00218     <span class="keywordtype">void</span> SetTimeout( <span class="keyword">const</span> <a class="code" href="classPTimeInterval.html">PTimeInterval</a> &amp; _timeout ) { timeout = _timeout; }00219 00220     BOOL MakeRequest( <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 );00221     BOOL MakeRequest( <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,  PSOAPMessage &amp; response );00222     BOOL MakeRequest( PSOAPMessage  &amp; request, PSOAPMessage &amp; response );00223 00224     <a class="code" href="classPString.html">PString</a> GetFaultText()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> faultText; }00225     PINDEX  GetFaultCode()<span class="keyword"> const </span>{ <span class="keywordflow">return</span> faultCode; }00226 00228     <span class="keywordtype">void</span> setSOAPAction( <a class="code" href="classPString.html">PString</a> saction ) { soapAction = saction; }00229   <span class="keyword">protected</span>:00230     BOOL PerformRequest( PSOAPMessage &amp; request, PSOAPMessage &amp; response );00231 00232     <a class="code" href="classPURL.html">PURL</a> url;00233     PINDEX  faultCode;00234     <a class="code" href="classPString.html">PString</a> faultText;00235     <a class="code" href="classPTimeInterval.html">PTimeInterval</a> timeout;00236   <span class="keyword">private</span>:00237     <a class="code" href="classPString.html">PString</a> soapAction;00238 };00239 00240 00241 <span class="preprocessor">#endif // P_EXPAT</span>00242 <span class="preprocessor"></span>00243 00244 <span class="preprocessor">#endif // _PSOAP_H</span>00245 <span class="preprocessor"></span>00246 00247 <span class="comment">// End of file ////////////////////////////////////////////////////////////////</span></pre></div><hr><address style="align: right;"><small>Generated on Wed Sep 29 22:44:11 2004 for PWLib by<a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border=0 width=110 height=53></a>1.2.18 </small></address></body></html>

⌨️ 快捷键说明

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