亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? soapdoc2.html

?? linux下開發的soap協議。建議大家學習學習!
?? HTML
?? 第 1 頁 / 共 5 頁
字號:
&nbsp;&nbsp;&nbsp;<b>struct</b>&nbsp;soap soap; <br />
&nbsp;&nbsp;&nbsp;... <br />
&nbsp;&nbsp;&nbsp;soap_init(&amp;soap); // initialize runtime environment <br />
&nbsp;&nbsp;&nbsp;... <br />
&nbsp;&nbsp;&nbsp;soap_call_ns__method1(&amp;soap, ...); // make a remote call <br />
&nbsp;&nbsp;&nbsp;... <br />
&nbsp;&nbsp;&nbsp;soap_call_ns__method2(&amp;soap, ...); // make another remote call <br />
&nbsp;&nbsp;&nbsp;... <br />
&nbsp;&nbsp;&nbsp;soap_end(&amp;soap); // clean up <br />
&nbsp;&nbsp;&nbsp;... <br />
}
</td></tr></table><br></i>
The runtime environment can also be heap allocated:
<br><br><table border=0 width="100%" cellpadding="8" bgcolor="#B0D0B0"><tr><td><i>
<b>int</b>&nbsp;main() <br />
{ <br />
&nbsp;&nbsp;&nbsp;<b>struct</b>&nbsp;soap *soap; <br />
&nbsp;&nbsp;&nbsp;... <br />
&nbsp;&nbsp;&nbsp;soap = soap_new(); // allocate and initialize runtime environment <br />
&nbsp;&nbsp;&nbsp;<b>if</b>&nbsp;(!soap) // couldn't allocate: stop <br />
&nbsp;&nbsp;&nbsp;... <br />
&nbsp;&nbsp;&nbsp;soap_call_ns__method1(soap, ...); // make a remote call <br />
&nbsp;&nbsp;&nbsp;... <br />
&nbsp;&nbsp;&nbsp;soap_call_ns__method2(soap, ...); // make another remote call <br />
&nbsp;&nbsp;&nbsp;... <br />
&nbsp;&nbsp;&nbsp;soap_end(soap); // clean up <br />
&nbsp;&nbsp;&nbsp;... <br />
&nbsp;&nbsp;&nbsp;free(soap); // deallocate runtime environment <br />
}
</td></tr></table><br></i>
A service need to allocate and initialize an environment before calling <i>soap_serve</i>:
<br><br><table border=0 width="100%" cellpadding="8" bgcolor="#B0D0B0"><tr><td><i>
<b>int</b>&nbsp;main() <br />
{ <br />
&nbsp;&nbsp;&nbsp;<b>struct</b>&nbsp;soap soap; <br />
&nbsp;&nbsp;&nbsp;soap_init(&amp;soap); <br />
&nbsp;&nbsp;&nbsp;soap_serve(&amp;soap); <br />
}
</td></tr></table><br></i>
Or alternatively:
<br><br><table border=0 width="100%" cellpadding="8" bgcolor="#B0D0B0"><tr><td><i>
<b>int</b>&nbsp;main() <br />
{ <br />
&nbsp;&nbsp;&nbsp;soap_serve(soap_new()); <br />
}
</td></tr></table><br></i>
A service can use multi-threading to handle requests while running some other code that invokes remote methods:
<br><br><table border=0 width="100%" cellpadding="8" bgcolor="#B0D0B0"><tr><td><i>
<b>int</b>&nbsp;main() <br />
{ <br />
&nbsp;&nbsp;&nbsp;<b>struct</b>&nbsp;soap soap1, soap2; <br />
&nbsp;&nbsp;&nbsp;pthread_t tid; <br />
&nbsp;&nbsp;&nbsp;... <br />
&nbsp;&nbsp;&nbsp;soap_init(&amp;soap1); <br />
&nbsp;&nbsp;&nbsp;<b>if</b>&nbsp;(soap_bind(&amp;soap1, host, port, backlog)  &lt;  0) exit(-1); <br />
&nbsp;&nbsp;&nbsp;<b>if</b>&nbsp;(soap_accept(&amp;soap1)  &lt;  0) exit(-1); <br />
&nbsp;&nbsp;&nbsp;pthread_create(&amp;tid, NULL, (<b>void</b>*(*)(<b>void</b>*))soap_serve, (<b>void</b>*)&amp;soap1]); <br />
&nbsp;&nbsp;&nbsp;... <br />
&nbsp;&nbsp;&nbsp;soap_init(&amp;soap2); <br />
&nbsp;&nbsp;&nbsp;soap_call_ns__method(&amp;soap2, ...); // make a remote call <br />
&nbsp;&nbsp;&nbsp;... <br />
&nbsp;&nbsp;&nbsp;soap_end(&amp;soap2); <br />
&nbsp;&nbsp;&nbsp;... <br />
&nbsp;&nbsp;&nbsp;pthread_join(tid); // wait for thread to terminate <br />
&nbsp;&nbsp;&nbsp;soap_end(&amp;soap1); // release its data <br />
}
</td></tr></table><br></i>
In the example above, two runtime environments are required.
In comparison, gSOAP 1.X statically allocates the runtime environment, which prohibits multi-threading (only one thread can invoke
remote methods and/or accept requests due to the single runtime environment).
<p>Section&nbsp;<a href="#sec:mt">5.2.3</a> presents a multi-threaded stand-alone Web Service that handles multiple SOAP requests by spawning a thread for each request.
<p> <h2><a name="tth_sEc4">4</a>&nbsp;&nbsp;<font color="#0000FF">Interoperability</font></h2>
<p>gSOAP interoperability has been verified with the following SOAP implementations and toolkits:
<dl compact="compact"> <dt><b>Apache 2.2</b></dt>	<dd></dd> <dt><b>Apache Axis</b></dt>	<dd></dd> <dt><b>ASP.NET</b></dt>	<dd></dd> <dt><b>Cape Connect</b></dt>	<dd></dd> <dt><b>Delphi</b></dt>	<dd></dd> <dt><b>easySOAP++</b></dt>	<dd></dd> <dt><b>eSOAP</b></dt>	<dd></dd> <dt><b>Frontier</b></dt>	<dd></dd> <dt><b>GLUE</b></dt>	<dd></dd> <dt><b>Iona XMLBus</b></dt>	<dd></dd> <dt><b>kSOAP</b></dt>	<dd></dd> <dt><b>MS SOAP</b></dt>	<dd></dd> <dt><b>Phalanx</b></dt>	<dd></dd> <dt><b>SIM</b></dt>	<dd></dd> <dt><b>SOAP::Lite</b></dt>	<dd></dd> <dt><b>SOAP4R</b></dt>	<dd></dd> <dt><b>Spray</b></dt>	<dd></dd> <dt><b>SQLData</b></dt>	<dd></dd> <dt><b>Wasp Adv.</b></dt>	<dd></dd> <dt><b>Wasp C++</b></dt>	<dd></dd> <dt><b>White Mesa</b></dt>	<dd></dd> <dt><b>xSOAP</b></dt>	<dd></dd> <dt><b>ZSI</b></dt>	<dd></dd> <dt><b>4S4C</b></dt>	<dd></dd></dl>
<p> <h2><a name="tth_sEc5">5</a>&nbsp;&nbsp;<font color="#0000FF">Quick User Guide</font></h2>
<p>This user guide offers a quick way to get started with gSOAP.  This section requires a basic understanding of the SOAP 1.1
protocol and some familiarity with C and/or C++. In principle, SOAP clients and SOAP Web services can be developed in C and C++
with the gSOAP stub and skeleton compiler without a detailed understanding of the SOAP protocol when the applications
are build as an ensamble and only communicate within this group (i.e. meaning that you don't have to worry about
interoperability with other SOAP implementations).  This section is intended to illustrate the implementation of SOAP C/C++ Web
services and clients that connect to other existing SOAP implementations such as Apache SOAP and SOAP::Lite for which some
details of the SOAP protocol need to be understood.
<p>	     <h3><a name="tth_sEc5.1">5.1</a>&nbsp;&nbsp;<font color="#0000FF">How to Use the gSOAP Stub and Skeleton Compiler to Build SOAP Clients</font></h3><a name="sec:client"></a>
<p>In general, the implementation of a SOAP client application requires a <b>stub</b> routine for each remote method that the client
application needs to invoke.  The primary stub's responsibility is to marshall the input data, send the request to the designated
SOAP service over the wire, to wait for the response, and to demarshall the output data when it arrives. The client application
invokes the stub routine for a remote method as if it would invoke a local method.  To write a stub routine in C or C++ by hand is
a tedious task, especially if the input and/or output data structures of a remote method are complex data types such as records,
arrays, and graphs.
<p>The generation of stub routines for a SOAP client is fully automated with gSOAP.  The gSOAP stub and skeleton compiler is a <b>
preprocessor</b> that generates the necessary C++ sources to build SOAP C++ clients. The input to the gSOAP stub and skeleton
compiler consists of a standard C/C++ <b>header file</b>.  The header file can be generated from a WSDL (Web Service
Description Language) documentation of a service with the gSOAP WSDL importer, see&nbsp;<a href="#sec:wsdlin">5.2.7</a>.  The SOAP remote methods are specified in this header file as <b>function prototypes</b>. Stub routines in
C/C++ source form are automatically generated by the gSOAP compiler for these function prototypes of remote methods.  The
resulting stub routines allow C and C++ client applications to seamlessly interact with existing SOAP Web services.
<p>The gSOAP stub and skeleton compiler also generates <b>skeleton</b> routines for each of the remote methods specified in the header
file. The skeleton routines can be readily used to implement one or more of the remote methods in a new SOAP Web service. These
skeleton routines are not used for building SOAP clients in C++, although they can be used to build mixed SOAP client/server
applications (peer applications).
<p>The input and output parameters of a SOAP remote method may be simple data types or complex data types.  The necessary <b>type
declarations</b> of C/C++ user-defined data structures such as structs, classes, enumerations, arrays, and pointer-based data
structures (graphs) are to be provided in the header file.  The gSOAP stub and skeleton compiler automatically generates <b>
serializers</b> and <b>deserializers</b> for the data types to enable the generated stub routines to encode and decode the contents of
the parameters of the remote methods.
<p>The remote method name and its parameterization can be found with a SOAP Web service description, typically in the form of an XML
schema. There is an almost one-to-one correspondence between the XML schema description of a SOAP remote method and the C++ type
declarations required to build a client application for the Web service. The schemas are typically part of the WSDL  specification of a SOAP Web service.  The gSOAP WSDL importer converts WSDL service descriptions into header files.
<p>		      <h4><a name="tth_sEc5.1.1">5.1.1</a>&nbsp;&nbsp;<font color="#0000FF">Example</font></h4><a name="sec:example1"></a>
<p>The <i>getQuote</i> remote method of XMethods Delayed Stock Quote service provides a delayed stock quote for a given ticker name,
see <a href="http://xmethods.com/detail.html?id=2"><tt>http://xmethods.com/detail.html?id=2</tt></a> for details. The WSDL description of the Delayed Stock Quote service provides the
following details:
<br><br><table border=0 width="100%" cellpadding="8" bgcolor="#D0D0D0"><tr><td><span class="roman">
<table><tr><td>Endpoint URL: </td><td><tt>http://services.xmethods.net:80/soap</tt> </td></tr><tr><td>SOAP action: </td><td>"" (2 quotes) </td></tr><tr><td>Remote method namespace: </td><td><tt>urn:xmethods-delayed-quotes</tt> </td></tr><tr><td>Remote method name: </td><td><tt>getQuote</tt> </td></tr><tr><td>&nbsp;&nbsp;&nbsp;Input parameter: </td><td><tt>symbol</tt> of type <tt>xsd:string</tt> </td></tr><tr><td>&nbsp;&nbsp;&nbsp;Output parameter: </td><td><tt>Result</tt> of type <tt>xsd:float</tt>
</td></tr></table>
</td></tr></table><br></span>
The following <i>getQuote.h</i> <b>header file</b> is created from the WSDL description with the WSDL importer:
<br><br><table border=0 width="100%" cellpadding="8" bgcolor="#B0D0B0"><tr><td><i>

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
中文字幕在线免费不卡| 婷婷激情综合网| 精品sm捆绑视频| 日韩一区二区视频| 欧美一区二区三区思思人| 欧美高清hd18日本| 欧美精品乱码久久久久久按摩| 在线观看www91| 欧美三级中文字幕| 国产亚洲成av人在线观看导航 | 亚洲图片激情小说| 国产精品人妖ts系列视频| 国产精品你懂的在线| 中文字幕中文字幕在线一区| 亚洲丝袜精品丝袜在线| 亚洲伊人色欲综合网| 天堂久久久久va久久久久| 91久久一区二区| 欧美午夜视频网站| 欧美乱妇20p| 精品欧美乱码久久久久久| 日韩欧美一级二级三级| 国产亚洲成aⅴ人片在线观看| 国产精品久久三区| 亚洲高清三级视频| 国内精品国产成人| 91在线观看美女| 欧美日本国产一区| 久久伊人蜜桃av一区二区| 久久青草欧美一区二区三区| 18欧美亚洲精品| 日本中文字幕一区二区视频| 岛国一区二区在线观看| 91黄视频在线| 国产亚洲一区二区三区四区| 一区二区三区欧美视频| 免费观看30秒视频久久| av一二三不卡影片| 91精品国产综合久久久久久漫画| 精品蜜桃在线看| 亚洲午夜激情网站| www..com久久爱| 日韩一二在线观看| 一区二区日韩av| 国产成人av一区二区三区在线观看| 色香蕉久久蜜桃| 欧美精品一区二区三区高清aⅴ | 精品一区二区久久| 欧美影片第一页| 国产精品丝袜一区| 美女视频黄免费的久久| 欧美色图第一页| 欧美国产日韩亚洲一区| 日韩精品福利网| 色偷偷88欧美精品久久久| 2020国产成人综合网| 日本不卡高清视频| 欧美午夜一区二区三区免费大片| 亚洲欧洲精品成人久久奇米网| 麻豆精品视频在线观看| 欧美日韩一级黄| 一卡二卡三卡日韩欧美| 成人午夜看片网址| 久久久午夜精品理论片中文字幕| 天堂av在线一区| 欧美在线小视频| 亚洲婷婷国产精品电影人久久| 懂色av中文一区二区三区| 26uuu另类欧美| 久久国产精品区| 精品剧情在线观看| 极品瑜伽女神91| 亚洲精品一区二区三区精华液 | 日本乱码高清不卡字幕| 国产精品高潮久久久久无| 国产91精品在线观看| 国产欧美久久久精品影院| 国产揄拍国内精品对白| 久久你懂得1024| 国产毛片精品视频| 国产亚洲一本大道中文在线| 国产成人小视频| 国产精品麻豆99久久久久久| 99视频热这里只有精品免费| 国产亲近乱来精品视频 | 亚洲国产综合91精品麻豆| 在线观看日韩av先锋影音电影院| 亚洲综合色网站| 欧美日韩激情一区二区三区| 香蕉成人啪国产精品视频综合网| 欧美日韩aaaaaa| 九九国产精品视频| 国产午夜亚洲精品不卡| av不卡在线观看| 午夜免费欧美电影| 精品国产精品一区二区夜夜嗨| 国产精品一区三区| 亚洲精品国产高清久久伦理二区| 欧美日韩精品福利| 国产丶欧美丶日本不卡视频| 亚洲欧洲国产日本综合| 欧美视频一区二区三区| 美女性感视频久久| 国产精品第五页| 一本大道久久a久久精二百 | 黄色日韩三级电影| 久久亚洲综合av| 91在线免费视频观看| 午夜日韩在线电影| 国产午夜精品在线观看| 欧美天堂一区二区三区| 久久99精品国产麻豆婷婷| 中文字幕在线免费不卡| 91.xcao| 国产一区二区三区免费看| 樱花影视一区二区| 精品久久一区二区三区| 欧美亚洲国产一区在线观看网站| 麻豆国产精品一区二区三区| 日韩毛片一二三区| 欧美tickling网站挠脚心| 97se亚洲国产综合在线| 久99久精品视频免费观看| 樱桃视频在线观看一区| 久久精品一区二区三区四区| 欧洲国产伦久久久久久久| 国产成人av一区二区三区在线 | 日韩精品1区2区3区| 2020国产成人综合网| 欧美最新大片在线看| 成人午夜在线免费| 蜜臀av性久久久久蜜臀aⅴ| 亚洲日本va午夜在线电影| 国产午夜精品美女毛片视频| 欧美久久久久久蜜桃| 色综合视频在线观看| 国产精品一区在线观看乱码| 日韩激情视频在线观看| 亚洲无线码一区二区三区| 国产精品护士白丝一区av| www国产精品av| 日韩一区二区在线观看| 欧美日韩一区成人| 欧美在线观看视频一区二区三区| 国产成人免费视频一区| 国产精品1024| 国产成人精品影视| 国产馆精品极品| 国产高清视频一区| 久久精品国产秦先生| 蜜臀av性久久久久蜜臀aⅴ| 日韩精品亚洲一区| 亚洲一区av在线| 亚洲1区2区3区4区| 天天综合天天综合色| 水野朝阳av一区二区三区| 日本vs亚洲vs韩国一区三区二区| 亚洲国产精品久久久男人的天堂| 亚洲一区二区三区不卡国产欧美| 一区二区三区四区视频精品免费 | 国产欧美一区二区三区鸳鸯浴| 日韩精品在线网站| 精品国产一区久久| 久久免费电影网| 久久久精品黄色| 亚洲欧洲综合另类| 亚洲日本免费电影| 亚洲成av人影院在线观看网| 亚洲精品网站在线观看| 丝袜亚洲另类丝袜在线| 美日韩黄色大片| 国产成人精品亚洲日本在线桃色| 国产高清不卡一区| 91影院在线免费观看| 欧美福利电影网| www.性欧美| 国产精品白丝av| 国产成a人亚洲| 精品视频免费在线| 精品播放一区二区| 国产精品国产三级国产普通话99 | 在线精品视频免费观看| 欧美久久久久久蜜桃| 2023国产精品| 亚洲欧美日韩在线播放| 天堂资源在线中文精品| 国产精品99久| 在线精品视频一区二区三四| 欧美mv和日韩mv的网站| 亚洲免费av高清| 免费精品视频在线| 91视频免费播放| 日韩欧美激情四射| 亚洲欧美激情在线| 激情小说欧美图片| 色欧美日韩亚洲| 国产欧美日韩精品a在线观看| 亚洲女子a中天字幕| 国产一区福利在线| 欧美日韩视频专区在线播放|