当前位置:首页 » 软件开发
开发技术指南» 文章正文
    引言: namespace Imtiaz { usin
 

 

 ·wsdl文件详解(转贴)下    »显示摘要«
    摘要: 在本文寫作時,並無任何 soap 實作,能進行作業名稱的多載動作。這對使用 java 的客戶端是很重要的,因為使用 java 的伺服端所使用的介面,會利用 java 的多載功能。但這對使用 com 的客戶端倒無所謂,因為 com 並不支援多載。 <binding> 與 <operation> 元素 binding 區段是,指定通訊協定、序列化、與編碼的地方......
 ·简单对象协议(soap)简介    »显示摘要«
    摘要: 简单对象访问协议-cnxml标准教程 <br> &nbsp;&nbsp;&nbsp;&nbsp;2000-9-25&nbsp;&nbsp;&nbsp;&nbsp;作者:何杭军<br> <br> &quot;soap是在非集中、分布环境中交换信息的轻量级协议。它是基于xml的协......


一个webseveice的例子
namespace imtiaz { using system; using system.io; using system.net; using system.net.sockets; using system.text; using system.threading ; class mywebserver {   private tcplistener mylistener ;   private int port = 5050 ; // select any free port you wish   //the constructor which make the tcplistener start listening on the   //given port. it also calls a thread on the method startlisten().   public mywebserver()   {    try    {     //start listing on the given port     mylistener = new tcplistener(port) ;     mylistener.start();     console.writeline("web server running... press ^c to stop...");     //start the thread which calls the method startlisten     thread th = new thread(new threadstart(startlisten));     th.start() ;    }    catch(exception e)    {     console.writeline("an exception occurred while listening :" +e.tostring());    }   }   /// <summary>   /// returns the default file name   /// input : webserverroot folder   /// output: default file name   /// </summary>   /// <param name="smywebserverroot"></param>   /// <returns></returns>   public string getthedefaultfilename(string slocaldirectory)   {    streamreader sr;    string sline = "";    try    {     //open the default.dat to find out the list     // of default file     sr = new streamreader("data\\default.dat");     while ((sline = sr.readline()) != null)     {      //look for the default file in the web server root folder      if (file.exists( slocaldirectory + sline) == true)       break;     }    }    catch(exception e)    {     console.writeline("an exception occurred : " + e.tostring());    }    if (file.exists( slocaldirectory + sline) == true)     return sline;    else     return "";   }   /// <summary>   /// this function takes filename as input and returns the mime type..
...   下一页
    摘要:  小结<br> <br>   下面总结一下配置web应用程序的步骤:<br> <br>   l 创建一个叫做stockconsumer的虚拟目录<br> <br>   l 将 stockconsumer.aspx 文件复制到这个虚拟目录下 <br> <br>   l 在wwwroot 文......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE