久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      PHP訪問C#建立的Webservice

      最近遇到要使用PHP訪問WebService。問了一下PHP程序員,用過的人少。自己配置。
      在XP上配置不成功,在Win2003上安裝一個(gè)5.2,安裝時(shí)記得選擇支持Soap。安裝完后把IIS里解釋PHP的DLL路徑改正確。
      把PHP.ini文件拷貝到Windows目錄下,把Soap的Dll文件php_soap.dll拷貝到System32目錄下。重啟IIS。新建一個(gè)PHP文件。
      1/* soap.php */
      2/* 連接的是C#實(shí)現(xiàn)的Webservice */
      3$client = new SoapClient(  http://xx.xxx.xx.com/service.asmx?wsdl);
      4$client->YourFunctionName(
      5array(
      6  “Parameter1″=>”Value1”,
      7  “Parameter2″=>”Value2”) );
      8print $client->YourFunctionNameResult;
      9
      這樣就得到結(jié)果了。
      SoapClient語法詳見php.net。用它也可以建立PHP的WebService。

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號(hào)-2    滬公網(wǎng)安備31011702889846號(hào)