
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
	<head><meta forua="true" http-equiv="Cache-Control" content="max-age=0" /></head><card id="MainCard" title="&#x6B22;&#x8FCE;&#x5149;&#x4E34;"><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a><br/>&nbsp;</p><p><b>&#x6807;&#x9898;&#x3A;</b> &#x41;&#x53;&#x50;&#x8C03;&#x7528;&#x57;&#x65;&#x62;&#x20;&#x53;&#x65;&#x72;&#x76;&#x69;&#x63;&#x65;&#x73;&#x793A;&#x4F8B;</p><p><b>&#x4F5C;&#x8005;&#x3A;</b> &#x64;&#x6E;&#x61;&#x77;&#x6F;</p><p><b>&#x65E5;&#x671F;&#x3A;</b> &#x32;&#x30;&#x30;&#x39;&#x2D;&#x30;&#x33;&#x2D;&#x31;&#x32;&#x20;&#x30;&#x36;&#x3A;&#x30;&#x36;&#x20;&#x50;&#x4D;</p><p><b>&#x5206;&#x7C7B;&#x3A;</b> <a href="wap.asp?do=showLog&amp;cateID=5">&#x57;&#x65;&#x62;&#x7F16;&#x7A0B;</a></p><p><b>&#x5185;&#x5BB9;&#x3A;</b> &#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;&lt;%<br/>&#39;&#x529F;&#x80FD;: &#x8C03;&#x7528;Web Services<br/>&#39;&#x53C2;&#x6570;&#xFF1A;<br/>&#39;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;url&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;Web Services&#x5730;&#x5740;<br/>&#39;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;method&#160;&#160;&#160;&#160;&#x8981;&#x8C03;&#x7528;&#x7684;&#x65B9;&#x6CD5;&#x540D;&#x79F0;<br/>&#39;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;args&#160;&#160;&#160;&#160;&#x4F20;&#x9012;&#x7ED9;method&#x65B9;&#x6CD5;&#x7684;&#x53C2;&#x6570;(&#x503C;/&#x5BF9;&#x683C;&#x5F0F;)<br/>&#39;&#x8FD4;&#x56DE;: xml&#x5B57;&#x7B26;&#x4E32;<br/>Function WebServices(url,method,args)<br/>&nbsp;&nbsp;&nbsp;&nbsp;Dim xmlHttp,sUrl<br/>&nbsp;&nbsp;&nbsp;&nbsp;Set xmlHttp = Cr&#101;ateObject(&#34;MSXML2.XMLHTTP&#34;)<br/>&nbsp;&nbsp;&nbsp;&nbsp;sUrl = url &amp; &#34;/&#34; &amp; method<br/>&nbsp;&nbsp;&nbsp;&nbsp;xmlHttp.Open &#34;post&#34;,sUrl,false<br/>&nbsp;&nbsp;&nbsp;&nbsp;xmlHttp.SetRequestHeader &#34;Content-Type&#34;,&#34;application/x-www-form-urlencoded&#34;<br/>&nbsp;&nbsp;&nbsp;&nbsp;xmlHttp.Send(args)<br/>&nbsp;&nbsp;&nbsp;&nbsp;If xmlHttp.Status = 200 Then<br/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;WebServices = xmlHttp.responseXML.xml<br/>&nbsp;&nbsp;&nbsp;&nbsp;End If<br/>&nbsp;&nbsp;&nbsp;&nbsp;Set xmlHttp = Nothing<br/>End Function<br/>&#39;&#x8C03;&#x7528;&#x793A;&#x4F8B;&#xFF1A;<br/>&#39;&#160;&#160;&#160;&#160;Web Services&#xFF1A;http://www.webxml.com.cn/WebServices/WeatherWS.asmx<br/>&#39;&#160;&#160;&#160;&#160;getWeather&#x65B9;&#x6CD5;&#xFF1A;public string[] getWeather(string theCityCode, string theUserID);<br/>Response.Write(WebServices(&#34;http://www.webxml.com.cn/WebServices/WeatherWS.asmx&#34;,&#34;getWeather&#34;,&#34;theCityCode=2210&amp;theUserID=&#34;))<br/>%&gt;<br/>&#x8FD8;&#x6709;&#x4E00;&#x79CD;&#x65B9;&#x6CD5;&#x662F;&#x4F7F;&#x7528;&#x5FAE;&#x8F6F;&#x7684;SOAP Toolkit 3.0&#xFF0C;&#x4EE3;&#x7801;&#x5982;&#x4E0B;&#xFF1A;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;&lt;%<br/>Dim soap<br/>Set soap = Cr&#101;ateObject(&#34;MSSOAP.SoapClient30&#34;)<br/>soap.ClientProperty(&#34;ServerHTTPRequest&#34;) = True<br/>soap.mssoapinit &#34;http://www.webxml.com.cn/WebServices/MobileCodeWS.asmx?wsdl&#34;, &#34;&#34;,&#34;&#34;,&#34;&#34;<br/>Response.Write(soap.getMobileCodeInfo(&#34;13799438732&#34;,&#34;&#34;))<br/>Set soap = Nothing<br/>%&gt;<br/>&#x4F46;&#x4F7F;&#x7528;SOAP Toolkit 3.0&#x7684;&#x7F3A;&#x70B9;&#x662F;&#x5FC5;&#x987B;&#x5728;&#x670D;&#x52A1;&#x5668;&#x4E0A;&#x5B89;&#x88C5;&#x540E;&#x624D;&#x80FD;&#x4F7F;&#x7528;&#xFF01;<br/>-------------------------------------- 2009-05-24 &#x8865;&#x5145; --------------------------------------<br/>1).&#x5FC5;&#x987B;&#x5728;Web Services&#x9879;&#x76EE;&#x914D;&#x7F6E;&#x6587;&#x4EF6;(web.config)&#x7684;system.web&#x8282;&#x70B9;&#x4E2D;&#x6DFB;&#x52A0;&#x4EE5;&#x4E0B;&#x5185;&#x5BB9;&#xFF1A;<br/>&#x590D;&#x5236;&#x5185;&#x5BB9;&#x5230;&#x526A;&#x8D34;&#x677F; &#x7A0B;&#x5E8F;&#x4EE3;&#x7801;&lt;webServices&gt;<br/>&nbsp;&nbsp;&lt;protocols&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;add name=&#34;HttpPost&#34;/&gt;<br/>&nbsp;&nbsp;&nbsp;&nbsp;&lt;add name=&#34;HttpGet&#34;/&gt;<br/>&nbsp;&nbsp;&lt;/protocols&gt;<br/>&lt;/webServices&gt;<br/>&#x5426;&#x5219;&#xFF0C;http://www.webxml.com.cn/WebServices/WeatherWS.asmx/getWeather?theCityCode=2210&amp;theUserID=&#x8C03;&#x7528;&#x65F6;&#x4F1A;&#x63D0;&#x793A;&#xFF1A;&#x56E0; URL &#x610F;&#x5916;&#x5730;&#x4EE5;&#x201C;/getWeather&#x201D;&#x7ED3;&#x675F;&#xFF0C;&#x8BF7;&#x6C42;&#x683C;&#x5F0F;&#x65E0;&#x6CD5;&#x8BC6;&#x522B;&#x3002;<br/>2).&#x4F7F;&#x7528;C#&#x7F16;&#x5199;&#x7684;Web Services&#x5BF9;&#x5927;&#x5C0F;&#x5199;&#x662F;&#x654F;&#x611F;&#x7684;&#xFF0C;&#x6240;&#x4EE5;&#x8C03;&#x7528;&#x7684;&#x65B9;&#x6CD5;&#x540D;&#x4E00;&#x5B9A;&#x8981;&#x6CE8;&#x610F;&#x5927;&#x5C0F;&#x5199;&#xFF0C;&#x5426;&#x5219;&#x4F1A;&#x51FA;&#x9519;&#x3002;<br/>3).&#x5982;&#x679C;&#x53C2;&#x6570;&#x503C;&#x5E26;&#x4E2D;&#x6587;&#xFF0C;&#x4E00;&#x5B9A;&#x8981;&#x6CE8;&#x610F;&#x7F16;&#x7801;&#xFF0C;&#x5426;&#x5219;&#x53EF;&#x80FD;&#x5F97;&#x4E0D;&#x5230;&#x4F60;&#x60F3;&#x8981;&#x7684;&#x7ED3;&#x679C;&#x3002;</p><p> + <a href="#CommentCard">&#x67E5;&#x770B;&#x5F53;&#x524D;&#x65E5;&#x5FD7;&#x8BC4;&#x8BBA;</a> (0)</p><p>&nbsp;<br/><br/><a href="wap.asp?do=Login">&#x767B;&#x5F55;</a></p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.031&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card><card id="postCommentCard"><p><b>&#x6807;&#x9898;&#x3A;</b> <a href="#MainCard">&#x41;&#x53;&#x50;&#x8C03;&#x7528;&#x57;&#x65;&#x62;&#x20;&#x53;&#x65;&#x72;&#x76;&#x69;&#x63;&#x65;&#x73;&#x793A;&#x4F8B;</a></p><p><br/>你没有权限发表评论</p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.031&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card><card id="CommentCard"><p>&#x6682;&#x65E0;&#x8BC4;&#x8BBA;</p><p><a href="#MainCard">&#x8FD4;&#x56DE;</a></p><p><br/>&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;&#x2500;</p><p><a href="wap.asp">&#x6728;&#x5B50;&#x5C4B;</a></p><p><a href="http://www.pjhome.net/wap.asp">PJBlog3&nbsp;v3.2.9.518</a>&nbsp;Inside.</p><p>Processed&nbsp;In&nbsp;0.031&nbsp;ms</p><do type="prev" label="&#x8FD4;&#x56DE;"><prev/></do></card>
</wml>
