📄 psoap_8h-source.html
字号:
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 & _request )00143 : request( _request ) { }00144 00145 PSOAPMessage & 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> & 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> & 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> & 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> & 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> & 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> & request );00183 BOOL <a class="code" href="classPHTTPResource.html#a12">OnPOSTData</a>( <a class="code" href="classPHTTPRequest.html">PHTTPRequest</a> & request, <span class="keyword">const</span> <a class="code" href="classPStringToString.html">PStringToString</a> & 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> & body, <a class="code" href="classPString.html">PString</a> & reply );00187 <span class="keyword">virtual</span> BOOL SetMethod( <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> & methodName, <span class="keyword">const</span> <a class="code" href="classPNotifier.html">PNotifier</a> & func );00188 BOOL OnSOAPRequest( <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> & methodName, PSOAPMessage & request, <a class="code" href="classPString.html">PString</a> & 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> & 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> & url );00217 00218 <span class="keywordtype">void</span> SetTimeout( <span class="keyword">const</span> <a class="code" href="classPTimeInterval.html">PTimeInterval</a> & _timeout ) { timeout = _timeout; }00219 00220 BOOL MakeRequest( <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> & method, <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> & nameSpace );00221 BOOL MakeRequest( <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> & method, <span class="keyword">const</span> <a class="code" href="classPString.html">PString</a> & nameSpace, PSOAPMessage & response );00222 BOOL MakeRequest( PSOAPMessage & request, PSOAPMessage & 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 & request, PSOAPMessage & 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 + -