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

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

?? soapdoc2.html

?? linux下開發的soap協議。建議大家學習學習!
?? HTML
?? 第 1 頁 / 共 5 頁
字號:
<b>int</b>&nbsp;ns1__getQuote(<b>char</b>&nbsp;*symbol, <b>float</b>&nbsp;&amp;Result); <br />
<b>int</b>&nbsp;ns2__getQuote(<b>char</b>&nbsp;*ticker, <b>char</b>&nbsp;*&amp;quote);
</td></tr></table><br></i>
The namespace prefix is separated from the remote method names by a pair of underscores (<i>__</i>) by convention.
<p>This example enables a client program to connect to a (hypothetical) Stock Quote service with remote methods that can only be
distinghuished by their namespaces. Consequently, two different namespace prefixes have been used as part of the remote method
names.
<p>The namespace prefix convention can also be applied to <i><b>class</b></i> declarations that contain SOAP compound values
that share the same name but have different namespaces that refer to different XML schemas. For example:
<br><br><table border=0 width="100%" cellpadding="8" bgcolor="#B0D0B0"><tr><td><i>
<b>class</b>&nbsp;<font color="#FF0000">e__Address</font> // an electronic address <br />
{ <br />
&nbsp;&nbsp;&nbsp;char *email; <br />
&nbsp;&nbsp;&nbsp;char *url; <br />
}; <br />
<b>class</b>&nbsp;<font color="#0000FF">s__Address</font> // a street address <br />
{ <br />
&nbsp;&nbsp;&nbsp;char *street; <br />
&nbsp;&nbsp;&nbsp;int number; <br />
&nbsp;&nbsp;&nbsp;char *city; <br />
};
</td></tr></table><br></i>
The namespace prefix is separated from the data type names by a pair of underscores (<i>__</i>) by convention.
<p>An instance of <i><font color="#FF0000">e__Address</font></i> is encoded by the generated serializer for this type as an Address element with namespace prefix <i><font color="#FF0000">e</font></i>:
<br><br><table border=0 width="100%" cellpadding="8" bgcolor="#B0B0D0"><tr><td><tt>
&lt;<font color="#FF0000">e:Address</font> xsi:type="<font color="#FF0000">e:Address</font>"&#62; <br />
&lt;email xsi:type="string"&#62;me@home&lt;/email&#62; <br />
&lt;url xsi:type="string"&#62;www.me.com&lt;/url&#62; <br />
&lt;/<font color="#FF0000">e:Address</font>&#62;
</td></tr></table><br></tt>
While an instance of <i><font color="#0000FF">s__Address</font></i> is encoded by the generated serializer for this type as an Address element with namespace prefix <i><font color="#0000FF">s</font></i>:
<br><br><table border=0 width="100%" cellpadding="8" bgcolor="#B0B0D0"><tr><td><tt>
&lt;<font color="#0000FF">s:Address</font> xsi:type="<font color="#0000FF">s:Address</font>"&#62; <br />
&lt;street xsi:type="string"&#62;Technology Drive&lt;/street&#62; <br />
&lt;number xsi:type="int"&#62;5&lt;/number&#62; <br />
&lt;city xsi:type="string"&#62;Softcity&lt;/city&#62; <br />
&lt;/<font color="#0000FF">s:Address</font>&#62;
</td></tr></table><br></tt>
The namespace mapping table of the client program must have entries for <i><font color="#FF0000">e</font></i> and <i><font color="#0000FF">s</font></i> that refer to the XML schemas of the data types:
<br><br><table border=0 width="100%" cellpadding="8" bgcolor="#B0D0B0"><tr><td><i>
<b>struct</b>&nbsp;Namespace namespaces[] = <br />
{ ... <br />
&nbsp;&nbsp;&nbsp;{"<font color="#FF0000">e</font>", "http://www.me.com/schemas/electronic-address"}, <br />
&nbsp;&nbsp;&nbsp;{"<font color="#0000FF">s</font>", "http://www.me.com/schemas/street-address"}, <br />
...
</td></tr></table><br></i> 
This table is required to be part of the client application to allow access by the serializers and deserializers of the data types at run time.
<p>		      <h4><a name="tth_sEc5.1.4">5.1.4</a>&nbsp;&nbsp;<font color="#0000FF">Some SOAP Encoding Considerations</font></h4><a name="sec:encoding"></a>
<p>Many SOAP services require the explicit use of XML schema types in the SOAP payload. The default encoding, which is also adopted
by the gSOAP stub and skeleton compiler, assumes SOAP encoding. This can be easily changed by using <i><b>typedef</b></i> definitions in
the header file input to the gSOAP compiler. The type name defined by a <i><b>typedef</b></i> definition corresponds to an XML schema
type and may include an optional namespace prefix. For example, the following <i><b>typedef</b></i> declarations, when part of the header
file input to the gSOAP compiler, defines various built-in XML schema types implemented as primitive C/C++ types:
<br><br><table border=0 width="100%" cellpadding="8" bgcolor="#B0D0B0"><tr><td><i>
// Contents of header file: <br />
... <br />
<b>typedef</b>&nbsp;<b>char</b>&nbsp;*xsd__string; // encode xsd__string value as the <span class="roman"><tt>xsd:string</tt></span> schema type <br />
<b>typedef</b>&nbsp;<b>char</b>&nbsp;*xsd__anyURI; // encode xsd__anyURI value as the <span class="roman"><tt>xsd:anyURI</tt></span> schema type <br />
<b>typedef</b>&nbsp;<b>float</b>&nbsp;xsd__float; // encode xsd__float value as the <span class="roman"><tt>xsd:float</tt></span> schema type <br />
<b>typedef</b>&nbsp;<b>long</b>&nbsp;xsd__int; // encode xsd__int value as the <span class="roman"><tt>xsd:int</tt></span> schema type <br />
<b>typedef</b>&nbsp;<b>bool</b>&nbsp;xsd__boolean; // encode xsd__boolean value as the <span class="roman"><tt>xsd:boolean</tt></span> schema type <br />
<b>typedef</b>&nbsp;<b>unsigned</b>&nbsp;<b>long</b>&nbsp;<b>long</b>&nbsp;xsd__positiveInteger; // encode xsd__positiveInteger value as the <span class="roman"><tt>xsd:positiveInteger</tt></span>  schema type<br />
...
</td></tr></table><br></i>
This simple mechanism informs the gSOAP compiler to generate serializers and deserializers that explicitly encode and decode the
primitive C++ types as built-in primitive XML schema types when the <i>typedef</i>ed type is used in the parameter signature of a
remote method (or when used nested within structs, classes, and arrays).  At the same time, the use of <i><b>typedef</b></i> 
does not force any recoding of a C++ client or Web service application as the internal C++ types used by the application
are not required to be changed (but still have to be primitive C++ types, see Section&nbsp;<a href="#sec:primclass">8.2.2</a> for alternative class
implementations of primitive XML schema types which allows for the marshalling of polymorphic primitive SOAP types).
<p>		      <h4><a name="tth_sEc5.1.5">5.1.5</a>&nbsp;&nbsp;<font color="#0000FF">Example</font></h4><a name="sec:example3"></a>
<p>Reconsider the <i>getQuote</i> example, now rewritten with explicit XML schema types to illustrate the effect:
<br><br><table border=0 width="100%" cellpadding="8" bgcolor="#B0D0B0"><tr><td><i>
// Contents of file "getQuote.h": <br />
<b>typedef</b>&nbsp;<b>char</b>&nbsp;*<font color="#FF0000">xsd__string</font>; <br />
<b>typedef</b>&nbsp;<b>float</b>&nbsp;<font color="#0000FF">xsd__float</font>; <br />
<b>int</b>&nbsp;<font color="#00FF00">ns1__getQuote</font>(<font color="#FF0000">xsd__string</font> <font color="#FF00FF">symbol</font>, <font color="#0000FF">xsd__float</font> &amp;<font color="#00FFFF">Result</font>);
</td></tr></table><br></i>
This header file is compiled by the gSOAP stub and skeleton compiler and the compiler generates source code for the function
<i>soap_call_ns1__getQuote</i>, which is identical to the ``old'' proxy:
<br><br><table border=0 width="100%" cellpadding="8" bgcolor="#B0D0B0"><tr><td><i>
<b>int</b>&nbsp;soap_call_ns1__getQuote(<b>struct</b>&nbsp;soap *soap, <b>char</b>&nbsp;*URL, <b>char</b>&nbsp;*action, <b>char</b>&nbsp;*symbol, <b>float</b>&nbsp;&amp;Result);
</td></tr></table><br></i>
The client application does not need to be rewritten and can still call the proxy using the ``old'' parameter signature. In contrast to
the previous implementation of the stub however, the encoding and decoding of the data types by the stub has been changed to
explicitly use the schema types.
<p>For example, when the client application calls the proxy, the proxy produces a SOAP request with <tt>xsd:string</tt>:
<br><br><table border=0 width="100%" cellpadding="8" bgcolor="#B0B0D0"><tr><td><tt>
... <br />
&lt;SOAP-ENV:Body&#62; <br />
&lt;<font color="#00FF00">ns1:getQuote</font>&#62;&lt;<font color="#FF00FF">symbol</font> xsi:type="<font color="#FF0000">xsd:string</font>"&#62;AOL&lt;/<font color="#FF00FF">symbol</font>&#62; <br />
&lt;/<font color="#00FF00">ns1:getQuote</font>&#62; <br />
&lt;/SOAP-ENV:Body&#62; <br />
...
</td></tr></table><br></tt>
The service response is:
<br><br><table border=0 width="100%" cellpadding="8" bgcolor="#B0B0D0"><tr><td><tt>
... <br />
&lt;soap:Body&#62; <br />
&lt;<font color="#00FF00">n:getQuote</font>Response xmlns:n='urn:xmethods-delayed-quotes'&#62; <br />
&lt;<font color="#00FFFF">Result</font> xsi:type='<font color="#0000FF">xsd:float</font>'&#62;41.81&lt;/<font color="#00FFFF">Result</font>&#62; <br />
&lt;/<font color="#00FF00">n:getQuote</font>Response&#62; <br />
&lt;/soap:Body&#62; <br />
...
</td></tr></table><br></tt>
The validation of this service response by the stub routine takes place by matching the namespace URIs that are bound to the
<tt>xsd</tt> namespace prefix. The stub also expects the <tt>getQuoteResponse</tt> element to be associated with namespace URI
<tt>urn:xmethods-delayed-quotes</tt> through the binding of the namespace prefix <tt>ns1</tt> in the namespace mapping table. The
service response uses namespace prefix <tt>n</tt> for the <tt>getQuoteResponse</tt> element. This namespace prefix is bound to the same
namespace URI <tt>urn:xmethods-delayed-quotes</tt> and therefore the service response is assumed to be valid.  The response is
rejected and a SOAP fault is generated if the namespace URIs do not match.
<p>		      <h4><a name="tth_sEc5.1.6">5.1.6</a>&nbsp;&nbsp;<font color="#0000FF">How to Change the Response Element Name</font></h4><a name="sec:response"></a>
<p>There is no explicit standard convention for the response element name in SOAP, although it is recommended that the response
element name is the method name ending with ``<tt>Response</tt>''. For example, the response element of <tt>getQuote</tt> is
<tt>getQuoteResponse</tt>.
<p>The response element name can be specified explicitly using a <i><b>struct</b></i> or <i><b>class</b></i> declaration in the header file. The
<i><b>struct</b></i> or <i><b>class</b></i> name represents the SOAP response element name used by the service. Consequently, the output
parameter of the remote method must be declared as a field of the <i><b>struct</b></i> or <i><b>class</b></i>.  The use of a <i><b>struct</b></i> or a
<i><b>class</b></i> for the service response is fully SOAP 1.1 compliant. In fact, the absence of a <i><b>struct</b></i> or <i><b>class</b></i>
indicates to the gSOAP compiler to automatically generate a <i>struct</i> for the response which is internally used by a stub.
<p>		      <h4><a name="tth_sEc5.1.7">5.1.7</a>&nbsp;&nbsp;<font color="#0000FF">Example</font></h4><a name="sec:example4"></a>
<p>Reconsider the <i>getQuote</i> remote method specification which can be rewritten with an explicit declaration of a SOAP response
element as follows:
<br><br><table border=0 width="100%" cellpadding="8" bgcolor="#B0D0B0"><tr><td><i>
// Contents of "getQuote.h": <br />
<b>typedef</b>&nbsp;<b>char</b>&nbsp;*<font color="#FF0000">xsd__string</font>; <br />
<b>typedef</b>&nbsp;<b>float</b>&nbsp;<font color="#0000FF">xsd__float</font>; <br />
<b>struct</b>&nbsp;<font color="#FFFF00">ns1__getQuoteResponse</font> {<font color="#0000FF">xsd__float</font> <font color="#00FFFF">Result</font>;}; <br />
<b>int</b>&nbsp;<font color="#00FF00">ns1__getQuote</font>(<font color="#FF0000">xsd__string</font> <font color="#FF00FF">symbol</font>, <b>struct</b>&nbsp;<font color="#FFFF00">ns1__getQuoteResponse</font> &amp;r);
</td></tr></table><br></i>
The SOAP request is the same as before:
<br><br><table border=0 width="100%" cellpadding="8" bgcolor="#B0B0D0"><tr><td><tt>
... <br />
&lt;SOAP-ENV:Body&#62; <br />
&lt;<font color="#00FF00">ns1:getQuote</font>&#62;&lt;<font color="#FF00FF">symbol</font> xsi:type="<font color="#FF0000">xsd:string</font>"&#62;AOL&lt;/<font color="#FF00FF">symbol</font>&#62; <br />
&lt;/<font color="#00FF00">ns1:getQuote</font>&#62; <br />
&lt;/SOAP-ENV:Body&#62; <br />
...
</td></tr></table><br></tt>
The difference is that the service response is required to match the specified <i>getQuoteResponse</i> name and its namespace URI:
<br><br><table border=0 width="100%" cellpadding="8" bgcolor="#B0B0D0"><tr><td><tt>
... <br />
&lt;soap:Body&#62; <br />
&lt;<font color="#FFFF00">n:getQuoteResponse</font> xmlns:n='urn:xmethods-delayed-quotes'&#62; <br />
&lt;<font color="#00FFFF">Result</font> xsi:type='<font color="#0000FF">xsd:float</font>'&#62;41.81&lt;/<font color="#00FFFF">Result</font>&#62; <br />
&lt;/<font color="#FFFF00">n:getQuoteResponse</font>&#62; <br />
&lt;/soap:Body&#62; <br />
...
</td></tr></table><br></tt>
This use of a <i><b>struct</b></i> or <i><b>class</b></i> enables the adaptation of the default SOAP response element name and/or namespace URI when required.
<p>Note that the <i><b>struct</b></i> (or <i><b>class</b></i>) declaration may appear within the function prototype declaration. For example:
<br><br><table border=0 width="100%" cellpadding="8" bgcolor="#B0D0B0"><tr><td><i>
// Contents of "getQuote.h": <br />
<b>typedef</b>&nbsp;<b>char</b>&nbsp;*<font color="#FF0000">xsd__string</font>; <br />
<b>typedef</b>&nbsp;<b>float</b>&nbsp;<font color="#0000FF">xsd__float</font>; <br />
<b>int</b>&nbsp;<font color="#00FF00">ns1__getQuote</font>(<font color="#FF0000">xsd__string</font> <font color="#FF00FF">symbol</font>, <b>struct</b>&nbsp;<font color="#FFFF00">ns1__getQuoteResponse</font> {<font color="#0000FF">xsd__float</font> <font color="#00FFFF">Result</font>;} &amp;r);
</td></tr></table><br></i>
This example combines the declaration of the response element of the remote method with the function prototype of the remote method.
<p>		      <h4><a name="tth_sEc5.1.8">5.1.8</a>&nbsp;&nbsp;<font color="#0000FF">How to Specify Multiple Output Parameters</font></h4><a name="sec:multiple"></a>
<p>The gSOAP stub and skeleton compiler uses the convention that the <b>single output parameter</b> of a remote method is the <b>
last parameter</b> of the function prototype declaration in a header file. All other parameters are considered input parameters of the remote method. To specify a remote method
with <b>multiple output parameters</b>, a <i><b>struct</b></i> or <i><b>class</b></i> must be declared 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩精品一区二区三区swag| 色婷婷国产精品综合在线观看| 欧美大胆一级视频| 久久精品99国产精品日本| 日韩一区二区免费在线观看| 美女视频网站久久| 国产日韩精品一区二区三区在线| 大尺度一区二区| 一区二区三区不卡在线观看| 欧美日韩一区不卡| aaa欧美色吧激情视频| 亚洲欧洲日韩av| 石原莉奈在线亚洲三区| 久久久精品免费观看| 国产乱妇无码大片在线观看| 国产精品高潮久久久久无| 欧洲精品中文字幕| 久久国产精品免费| 国产精品国产精品国产专区不片| 欧美在线免费播放| 国产精一区二区三区| 夜夜亚洲天天久久| 精品va天堂亚洲国产| 不卡的av在线| 三级一区在线视频先锋| 国产日本一区二区| 色综合久久综合网欧美综合网| 日韩av一区二区三区| 中文在线一区二区| 制服丝袜激情欧洲亚洲| 丁香桃色午夜亚洲一区二区三区| 亚洲主播在线播放| 国产色一区二区| 在线成人高清不卡| 色综合天天综合狠狠| 强制捆绑调教一区二区| 国产精品第一页第二页第三页| 欧美妇女性影城| 91在线精品一区二区| 麻豆精品精品国产自在97香蕉 | 欧美在线观看视频一区二区| 狠狠网亚洲精品| 午夜激情综合网| 亚洲特黄一级片| 久久久亚洲午夜电影| 欧美精品日韩一区| 欧美在线综合视频| 99久久婷婷国产| 国产精品白丝av| 久久精品国产亚洲一区二区三区| 亚洲狠狠丁香婷婷综合久久久| 国产日韩欧美亚洲| 精品粉嫩超白一线天av| 91精品国产色综合久久不卡电影 | 日本福利一区二区| 99久久99久久综合| 高清在线成人网| 国产一区二区三区四区五区美女 | 色综合天天综合网国产成人综合天| 国产主播一区二区三区| 免费观看30秒视频久久| 亚洲成年人网站在线观看| 亚洲欧美日本在线| 中文字幕一区二区三区在线观看 | 久久精品二区亚洲w码| 日日夜夜精品免费视频| 一区二区三区免费观看| 亚洲婷婷国产精品电影人久久| 国产日韩欧美在线一区| 久久久亚洲欧洲日产国码αv| 日韩视频在线观看一区二区| 欧美女孩性生活视频| 欧美吻胸吃奶大尺度电影 | 精品日韩一区二区三区免费视频| 欧美色中文字幕| 欧美系列日韩一区| 欧美精三区欧美精三区| 91麻豆精品国产91久久久更新时间| 欧美丝袜第三区| 欧美肥妇free| 欧美一区二区三区视频| 欧美α欧美αv大片| 久久久久国产精品厨房| 中文字幕成人av| 一区精品在线播放| 亚洲美女精品一区| 一区二区三区日韩| 午夜私人影院久久久久| 青青青爽久久午夜综合久久午夜| 免费观看一级欧美片| 国产一区在线精品| 99久久99久久精品免费观看| 色欧美日韩亚洲| 欧美一区二区三区视频| 久久综合九色综合97婷婷女人| 国产亚洲精品久| 综合在线观看色| 婷婷久久综合九色国产成人| 久久99久国产精品黄毛片色诱| 国产精品18久久久久久久久久久久| 国产成人丝袜美腿| 91猫先生在线| 日韩欧美国产一区二区在线播放| 久久久亚洲午夜电影| 亚洲乱码国产乱码精品精小说| 亚洲观看高清完整版在线观看| 免费成人av资源网| 国产91露脸合集magnet | 在线播放欧美女士性生活| 精品国产乱子伦一区| 亚洲三级在线免费观看| 日韩电影在线观看电影| 成人免费毛片片v| 欧美午夜一区二区| 久久久久久久国产精品影院| 亚洲乱码国产乱码精品精可以看| 日本特黄久久久高潮| 国产不卡免费视频| 欧美福利视频导航| 国产精品久久久久久久裸模| 日本不卡一区二区| a4yy欧美一区二区三区| 日韩亚洲国产中文字幕欧美| 中文字幕五月欧美| 久久国产精品免费| 欧美性生活一区| 欧美激情一区二区| 蜜臀va亚洲va欧美va天堂| 暴力调教一区二区三区| 日韩精品最新网址| 亚洲综合图片区| 国产精品456| 欧美一区二区三区免费| 亚洲精品中文字幕在线观看| 黄色精品一二区| 欧美一区二区久久久| 一区二区三区欧美| www.成人网.com| 国产三级一区二区| 久久精品国产亚洲高清剧情介绍| 色噜噜狠狠一区二区三区果冻| 国产午夜精品在线观看| 麻豆精品视频在线观看免费 | 久久www免费人成看片高清| 色999日韩国产欧美一区二区| 国产三级精品视频| 久久国产精品99久久人人澡| 7777精品伊人久久久大香线蕉经典版下载| 国产精品国产a| 成人激情av网| 久久久久久久久久久久久女国产乱| 香港成人在线视频| 色偷偷成人一区二区三区91| 国产精品沙发午睡系列990531| 精品一区二区三区视频在线观看| 91精品国产色综合久久不卡电影| 一区二区三区在线观看国产| 99久免费精品视频在线观看| 国产精品污污网站在线观看| 国产精品亚洲一区二区三区妖精| 久久综合九色欧美综合狠狠| 国产精品白丝av| 亚洲国产精品二十页| 成人午夜免费视频| 欧美国产日产图区| 日本欧美韩国一区三区| 色诱亚洲精品久久久久久| 欧美午夜精品理论片a级按摩| 日韩一区二区中文字幕| 偷拍一区二区三区| 欧美日韩精品免费| 午夜精品久久久久久久 | 国产精品短视频| 91在线小视频| 亚洲男人的天堂在线观看| 一本大道久久a久久精二百| 一级女性全黄久久生活片免费| 在线视频一区二区三区| 亚洲成av人片在线观看无码| 欧美一区日韩一区| 国产在线观看免费一区| 欧美韩国日本一区| 色婷婷国产精品久久包臀| 视频一区在线播放| 久久免费电影网| gogogo免费视频观看亚洲一| 亚洲激情图片qvod| 5858s免费视频成人| 国产一区二区三区观看| 国产精品久久精品日日| 在线视频一区二区三| 久久精品国产精品亚洲红杏| 国产欧美在线观看一区| 在线亚洲高清视频| 免费高清在线一区| 中文字幕一区在线| 日韩一级免费观看| 91亚洲国产成人精品一区二区三| 亚洲成人免费影院| 国产视频一区在线观看|